small racing game im working on
Diffstat (limited to 'cam.gd')
-rw-r--r--cam.gd3
1 files changed, 3 insertions, 0 deletions
diff --git a/cam.gd b/cam.gd
index 6840b56..b53ad19 100644
--- a/cam.gd
+++ b/cam.gd
@@ -8,6 +8,9 @@ var last_lookat
func _ready():
last_lookat = follow_this.global_transform.origin
+ if follow_this is Car:
+ await follow_this.ready
+ follow_this = follow_this.car_mesh
func _physics_process(delta):
var delta_v = global_transform.origin - follow_this.global_transform.origin