implicitly apply_to_body in apply_enum

This commit is contained in:
Quaternions 2024-02-21 22:07:21 -08:00
parent d2a864e2c1
commit fad7ed393b

View File

@ -500,6 +500,7 @@ impl MoveState{
}, },
_=>(), _=>(),
} }
self.apply_to_body(body,touching,models,hitbox_mesh,style,camera,input_state);
} }
//function to coerce &mut self into &self //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){ fn apply_to_body(&self,body:&mut Body,touching:&TouchingState,models:&PhysicsModels,hitbox_mesh:&HitboxMesh,style:&StyleModifiers,camera:&PhysicsCamera,input_state:&InputState){