From cda4d82236e00ae64ea6819887eb1d6c67b4a4d6 Mon Sep 17 00:00:00 2001 From: Royiex <99565766+Royiex@users.noreply.github.com> Date: Mon, 12 Feb 2024 19:13:43 +0100 Subject: [PATCH] Better Print --- src/physics.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/physics.rs b/src/physics.rs index 49f553d..043b76e 100644 --- a/src/physics.rs +++ b/src/physics.rs @@ -45,6 +45,7 @@ pub struct Body{ pub acceleration:Planar64Vec3,//I64 where 2^32 = 1 u/s/s pub time:Time,//nanoseconds x xxxxD! } + impl std::ops::Neg for Body{ type Output=Self; fn neg(self)->Self::Output{ @@ -1177,7 +1178,7 @@ impl PhysicsState { ordered_checkpoint_from_checkpoint_id:eshmep2, }); } - println!("Physics Objects: {}",self.models.models.len()); + // println!("Physics Objects: {}",self.models.models.len()); } pub fn load_user_settings(&mut self,user_settings:&crate::settings::UserSettings){ @@ -1360,7 +1361,7 @@ fn set_velocity_cull(body:&mut Body,touching:&mut TouchingState,models:&PhysicsM let r=n.dot(v)<=Planar64::ZERO; if !r{ culled=true; - println!("set_velocity_cull contact={:?}",contact); + // println!("set_velocity_cull contact={:?}",contact); } r });