extends Node2D @export var wantedVelocity: int = 0 func _on_body_entered(body: Node2D) -> void: if OS.is_debug_build(): $Label.text = str(body)+ " " + "body entered " if body.has_method("brake"): (body as Car).brake(wantedVelocity) func _on_body_exited(body: Node2D) -> void: if OS.is_debug_build(): $Label.text = str(body)+ " " + "body exited " if body.has_method("accelerate"): (body as Car).accelerate()