feat: no longer compiling car physics print calls

This commit is contained in:
Sara 2024-05-21 11:55:22 +02:00
parent 2a3bb9e24e
commit 80270546e0

View file

@ -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) {