diff --git a/src/physics.rs b/src/physics.rs index 962d2da..861f52c 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -488,6 +488,7 @@ enum MoveState{ Fly, } impl MoveState{ + //function to coerce &mut self into &self fn apply_to_body(&self,body:&mut Body,touching:&TouchingState,models:&PhysicsModels,hitbox_mesh:&HitboxMesh,style:&StyleModifiers,camera:&PhysicsCamera,input_state:&InputState){ match self{ MoveState::Air=>(), @@ -1316,6 +1317,7 @@ fn run_teleport_behaviour(wormhole:&Option,models if contacting_ladder.sticky{ //kill v //actually you could do this with a booster attribute :thinking: + //it's a little bit different because maybe you want to chain ladders together v=Planar64Vec3::ZERO;//model.velocity } //ladder walkstate