From 9b4b09798b75d29e4173ecdfefa338e90ea10070 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 21 Feb 2024 22:58:40 -0800 Subject: [PATCH] notes about fixes --- src/physics.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/physics.rs b/src/physics.rs index 4a1d5ed..6679486 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -500,6 +500,7 @@ impl MoveState{ }, _=>(), } + //this fixes falling through the ground when walking self.apply_to_body(body,touching,models,hitbox_mesh,style,camera,input_state); } //function to coerce &mut self into &self @@ -1388,6 +1389,8 @@ fn run_teleport_behaviour(wormhole:&Option,models }, None=>(), } + //just doing this to set the acceleration when surfing + state.move_state.apply_enum(&mut state.body,&state.touching,&data.models,&data.hitbox_mesh,&state.style,&state.camera,&state.input_state); }, (PhysicsCollisionAttributes::Intersect{intersecting: _,general},Collision::Intersect(intersect))=>{ //I think that setting the velocity to 0 was preventing surface contacts from entering an infinite loop