class_name PlayableBoundsStatus extends RefCounted enum State { INSIDE, NEAR_EDGE, OUTSIDE, } var state: State var distance_to_edge_m: float var return_direction: Vector3 func _init(p_state: State, p_distance_to_edge_m: float, p_return_direction: Vector3) -> void: state = p_state distance_to_edge_m = p_distance_to_edge_m return_direction = p_return_direction func requires_warning() -> bool: return state != State.INSIDE