Files
Ransom-s-wake/game/application/sites/playable_bounds_status.gd
2026-10-06 19:55:19 +02:00

23 lines
436 B
GDScript

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