PolygonPathFinder

Inherits: Resource < Reference < Object

Methods

PoolVector2Arrayfind_path ( Vector2 from, Vector2 to )
Rect2get_bounds ( ) const
Vector2get_closest_point ( Vector2 point ) const
PoolVector2Arrayget_intersections ( Vector2 from, Vector2 to ) const
floatget_point_penalty ( int idx ) const
boolis_point_inside ( Vector2 point ) const
voidset_point_penalty ( int idx, float penalty )
voidsetup ( PoolVector2Array points, PoolIntArray connections )

Method Descriptions


  • Rect2 get_bounds ( ) const



  • float get_point_penalty ( int idx ) const


  • void set_point_penalty ( int idx, float penalty )