PointClickEngine::Scenes::PolygonHotspot
Inherits PointClickEngine::Scenes::Hotspot < PointClickEngine::Core::GameObject < PointClickEngine::Core::Drawable < Reference < Object
Polygon-shaped clickable hotspot
Constructors
new(name : String, vertices : Array(RL::Vector2))
Sourcenew
SourceInstance methods
contains_point?(point : RL::Vector2) : Bool
Check if a point is inside the polygon using ray casting algorithm
vertices
Sourcevertices=(vertices : Array(RL::Vector2))
Source