From 7d1058164be87d2b78c4f7aff6fa430f320a6090 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 7 Aug 2024 14:40:59 -0700 Subject: [PATCH] rename JumpImpulse variant --- src/gameplay_style.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(), } }