PolygonPathFinder¶
Inherits: Resource < Reference < Object
类别: 核心
简要说明¶
方法¶
get_bounds ( ) const |
|
get_closest_point ( Vector2 point ) const |
|
get_intersections ( Vector2 from, Vector2 to ) const |
|
get_point_penalty ( int idx ) const |
|
is_point_inside ( Vector2 point ) const |
|
无效 |
set_point_penalty ( int idx, float penalty ) |
无效 |
setup ( PoolVector2Array points, PoolIntArray connections ) |
方法说明¶
PoolVector2Array find_path ( Vector2 from, Vector2 to )
Rect2 get_bounds ( ) const
PoolVector2Array get_intersections ( Vector2 from, Vector2 to ) const
void setup ( PoolVector2Array points, PoolIntArray connections )