diff --git a/src/physics.rs b/src/physics.rs index 940db81..16f2ee7 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -1298,7 +1298,7 @@ fn set_position(body:&mut Body,touching:&mut TouchingState,point:Planar64Vec3)-> //hovering above the surface 0 units is not intersecting. you will fall into it just fine body.position=point; //calculate contacts and determine the actual state - recalculate_touching(body); + recalculate_touching(state,data,models); point } fn set_velocity_cull(body:&mut Body,touching:&mut TouchingState,models:&PhysicsModels,hitbox_mesh:&HitboxMesh,v:Planar64Vec3)->bool{