diff --git a/src/gameplay_style.rs b/src/gameplay_style.rs index d28dd9e..02c0d66 100644 --- a/src/gameplay_style.rs +++ b/src/gameplay_style.rs @@ -50,7 +50,7 @@ pub enum JumpCalculation{ pub enum JumpImpulse{ FromTime(Time),//jump time is invariant across mass and gravity changes FromHeight(Planar64),//jump height is invariant across mass and gravity changes - FromDeltaV(Planar64),//jump velocity is invariant across mass and gravity changes + FromLinear(Planar64),//jump velocity is invariant across mass and gravity changes FromEnergy(Planar64),// :) } //Jumping acts on dot(walks_state.normal,body.velocity) @@ -66,7 +66,7 @@ impl JumpImpulse{ match self{ &JumpImpulse::FromTime(time)=>gravity.length()*(time/2), &JumpImpulse::FromHeight(height)=>(gravity.length()*height*2).sqrt(), - &JumpImpulse::FromDeltaV(deltav)=>deltav, + &JumpImpulse::FromLinear(deltav)=>deltav, &JumpImpulse::FromEnergy(energy)=>(energy*2/mass).sqrt(), } }