small racing game im working on
Diffstat (limited to 'race.gd')
-rw-r--r--race.gd9
1 files changed, 9 insertions, 0 deletions
diff --git a/race.gd b/race.gd
new file mode 100644
index 0000000..5c33a91
--- /dev/null
+++ b/race.gd
@@ -0,0 +1,9 @@
+extends Node3D
+
+@export var car: Car
+
+func _on_track_place_car(at: Vector3, rot: Vector3) -> void:
+ # await car.ready
+ car.ball.global_position = at + (Vector3.UP * 2)
+ car.ball.global_rotation = rot
+