From 80270546e0e877ac52601b932d1e2e17fa2957c9 Mon Sep 17 00:00:00 2001 From: Sara Date: Tue, 21 May 2024 11:55:22 +0200 Subject: [PATCH] feat: no longer compiling car physics print calls --- src/car_physics.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/car_physics.cpp b/src/car_physics.cpp index 41b83e3..6fcce43 100644 --- a/src/car_physics.cpp +++ b/src/car_physics.cpp @@ -40,12 +40,14 @@ void CarPhysics::_enter_tree() { void CarPhysics::_physics_process(double delta_time) { GDGAMEONLY(); this->process_oversteer(delta_time); this->process_understeer(delta_time); +#if 0 UtilityFunctions::print("true target speed: ", this->get_true_target_speed()); UtilityFunctions::print("speed: ", this->local_velocity.z); UtilityFunctions::print("grounded: ", this->grounded_objects.size()); UtilityFunctions::print("brakes: ", this->brake); UtilityFunctions::print("acceleration: ", this->get_current_acceleration()); UtilityFunctions::print("-----------------------------------------------------------"); +#endif } void CarPhysics::process_oversteer(double delta_time) { @@ -56,7 +58,9 @@ void CarPhysics::process_oversteer(double delta_time) { this->current_oversteer = target; else this->current_oversteer = Math::move_toward(this->current_oversteer, target, float(delta_time * this->traction_recovery_speed)); +#if 0 UtilityFunctions::print("current oversteer: ", this->current_oversteer, " target: ", target); +#endif } void CarPhysics::process_understeer(double delta_time) { @@ -65,7 +69,9 @@ void CarPhysics::process_understeer(double delta_time) { this->current_understeer = target; else this->current_understeer = Math::move_toward(this->current_understeer, target, float(delta_time * this->traction_recovery_speed)); +#if 0 UtilityFunctions::print("current understeer: ", this->current_understeer, " target: ", target); +#endif } void CarPhysics::_integrate_forces(PhysicsDirectBodyState3D *state) {