changed to use max static friction
This commit is contained in:
2
car.gd
2
car.gd
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user