small racing game im working on
Diffstat (limited to 'race.gd')
| -rw-r--r-- | race.gd | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 + |