From 8f153a1ea0a4760ea0d07652c892b1712527e527 Mon Sep 17 00:00:00 2001 From: ghostlyzsh Date: Wed, 17 May 2023 20:55:32 -0500 Subject: [PATCH] oops i disabled physics --- server/src/handler.rs | 4 ++-- server/src/timer.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/handler.rs b/server/src/handler.rs index 68e9c8e14f6d9cf83aea5ca3776a9f887b2899ee..dcb953c3d8a7905013d4e83d9d99f96302967c11 100644 --- a/server/src/handler.rs +++ b/server/src/handler.rs @@ -275,7 +275,7 @@ pub async fn handle_client( data_handle.rigid_body_set = rigid_body_set; data_handle.collider_set = collider_set; - let module_id = AttachedModule::attach_new( + /*let module_id = AttachedModule::attach_new( &mut data_handle, &mut e_write_handle, player_id, @@ -290,7 +290,7 @@ pub async fn handle_client( module_type: ModuleType::Cargo, }, 1, - ); + );*/ /*let module_id = AttachedModule::attach_new( &mut data_handle, &mut e_write_handle, diff --git a/server/src/timer.rs b/server/src/timer.rs index 3d2d263ca004653b0bbc95975a5a077f383cb429..9232b98e070ca2c0a3001bed2f272ca62b22a868 100644 --- a/server/src/timer.rs +++ b/server/src/timer.rs @@ -88,7 +88,7 @@ pub async fn timer_main( ); } - //physics_data.tick(&mut pipeline); + physics_data.tick(&mut pipeline); let mut protocol_players = vec![];