small racing game im working on
Diffstat (limited to 'cam.gd')
-rw-r--r--cam.gd6
1 files changed, 3 insertions, 3 deletions
diff --git a/cam.gd b/cam.gd
index dfcaedb..fb16e2f 100644
--- a/cam.gd
+++ b/cam.gd
@@ -34,10 +34,10 @@ func target() -> Vector3:
func _physics_process(delta):
- global_position = global_position.lerp(target(), delta * 20.0)
- last_lookat = last_lookat.lerp(follow_this.global_position, delta * 20.0)
+ global_position = global_position.lerp(target(), delta * 50.0)
+ last_lookat = last_lookat.lerp(follow_this.global_position, delta * 50.0)
look_at(last_lookat, Vector3(0.0, 1.0, 0.0))
-func _init(car: Car) -> void:
+func _init(car) -> void:
follow_this = car