class

PointClickEngine::Scenes::WalkablePointFinder

Inherits Reference < Object

Finds walkable points and constrains movement to walkable areas

Constructors

Instance methods

constrain_to_walkable(from : RL::Vector2, to : RL::Vector2, regions : Array(PolygonRegion), sample_steps : Int32 = 10) : RL::Vector2

Constrain movement path to walkable area

Source
find_nearest_walkable_point(target : RL::Vector2, regions : Array(PolygonRegion), max_radius : Float32 = 200.0, step_radius : Float32 = 10.0, angle_steps : Int32 = 16) : RL::Vector2

Find the nearest walkable point to a target position

Source