From 4dc706b783c93f0f1b96bff10056472b321c9b8f Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 21 Feb 2024 05:13:20 -0800 Subject: [PATCH] notes --- src/physics.rs | 2 ++ 1 file changed, 2 insertions(+) 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