diff --git a/lib/common/src/gameplay_style.rs b/lib/common/src/gameplay_style.rs index 60d7fb4f9..3b9191e1f 100644 --- a/lib/common/src/gameplay_style.rs +++ b/lib/common/src/gameplay_style.rs @@ -63,7 +63,7 @@ impl JumpImpulse{ velocity:Planar64Vec3, jump_dir:Planar64Vec3, gravity:&Planar64Vec3, - mass:Planar64, + _mass:Planar64, )->Planar64Vec3{ match self{ &JumpImpulse::Time(time)=>velocity-(*gravity*time).map(|t|t.divide().fix_1()), @@ -78,7 +78,7 @@ impl JumpImpulse{ velocity-(*gravity*(radicand.sqrt().fix_2()+v_g)/gg).divide().fix_1() }, &JumpImpulse::Linear(jump_speed)=>velocity+(jump_dir*jump_speed/jump_dir.length()).divide().fix_1(), - &JumpImpulse::Energy(energy)=>{ + &JumpImpulse::Energy(_energy)=>{ //calculate energy //let e=gravity.dot(velocity); //add @@ -355,7 +355,7 @@ pub struct LadderSettings{ pub dot:Planar64, } impl LadderSettings{ - pub const fn accel(&self,target_diff:Planar64Vec3,gravity:Planar64Vec3)->Planar64{ + pub const fn accel(&self,_target_diff:Planar64Vec3,_gravity:Planar64Vec3)->Planar64{ //TODO: fallible ladder accel self.accelerate.accel }