aboutsummaryrefslogtreecommitdiffstats
path: root/Scripts/car_behaviour.gd
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Scripts/car_behaviour.gd3
1 files changed, 1 insertions, 2 deletions
diff --git a/Scripts/car_behaviour.gd b/Scripts/car_behaviour.gd
index d5fc292..2ef9fb9 100644
--- a/Scripts/car_behaviour.gd
+++ b/Scripts/car_behaviour.gd
@@ -95,8 +95,7 @@ func own_movement(delta):
var desired_velocity = chosen_dir.rotated(rotation) * max_speed
var actual_speed = lerpf(velocity.length(), max_speed, acceleration)
- var actual_angle = lerp_angle(velocity.angle(), desired_velocity.angle(),
- steer_force)
+ var actual_angle = lerp_angle(velocity.angle(), desired_velocity.angle(), steer_force)
velocity = Vector2.from_angle(actual_angle) * actual_speed
rotation = actual_angle