4AIZWKPNXO7END5OUYYHJ456W22EXOVXHD3UQ7CN5TP5TOLWWLOQC
7IHSR5JCC3ZWXNWAJCIQC26475GODBBWVQLAZZVLC7BVAB5XUVHAC
3MQ355XGKT5IYOMZLREAHLPVO5MFOXOJBEZ5UOPTQPMHIYBFGXGQC
struct Constants { default_damping: f32, stabilisation_damping: f32, impulse_value: f32,}impl Default for Constants { fn default() -> Self { Constants { stabilisation_damping: 6., default_damping: 1., impulse_value: 30., } }}
struct Constants {
default_damping: f32,
stabilisation_damping: f32,
impulse_value: f32,
}
impl Default for Constants {
fn default() -> Self {
Constants {
stabilisation_damping: 6.,
default_damping: 1.,
impulse_value: 30.,
.init_resource::<Constants>()
constants: Res<Constants>,
linear_damping: 1.,
linear_damping: constants.default_damping,
let impulse = *direction * 30.;
let impulse = *direction * constants.impulse_value;
damping.linear_damping = 1.;
damping.linear_damping = constants.default_damping;
damping.linear_damping = 6.;
damping.linear_damping = constants.stabilisation_damping;