godot_rl_Racer / Waypoint.gd
edbeeching's picture
edbeeching HF staff
Upload . with huggingface_hub
b1e4a8e
raw
history blame contribute delete
292 Bytes
extends Area3D
var id := -1
func set_id(val):
id = val
$Label3D.text = "%s" % str(id)
func _on_waypoint_body_entered(body):
body = body as VehicleBody3D
if body:
GameManager.player_crossed_waypoint(body, id)
func _on_waypoint_body_exited(body):
body = body as VehicleBody3D