changed to use max static friction

This commit is contained in:
Wheelbarrow
2025-07-26 15:29:11 -04:00
parent 15547fce8d
commit c1426ddcc0
2 changed files with 36 additions and 9 deletions

2
car.gd
View File

@@ -53,7 +53,7 @@ func steer(delta: float) -> void:
front_left.rotation.y = -outer_angle
func apply_air_resistance() -> void:
var force: Vector3 = air_resistance * linear_velocity * linear_velocity.length()
var force: Vector3 = -air_resistance * linear_velocity * linear_velocity.length()
apply_force(force, center_of_mass)
DebugDraw3D.draw_arrow(
to_global(center_of_mass),