W3cubDocs

/Godot 3.0

PolygonPathFinder

Inherits: Resource < Reference < Object

Category: Core

Brief Description

Member Functions

PoolVector2Array find_path ( Vector2 from, Vector2 to )
Rect2 get_bounds ( ) const
Vector2 get_closest_point ( Vector2 point ) const
PoolVector2Array get_intersections ( Vector2 from, Vector2 to ) const
float get_point_penalty ( int idx ) const
bool is_point_inside ( Vector2 point ) const
void set_point_penalty ( int idx, float penalty )
void setup ( PoolVector2Array points, PoolIntArray connections )

Member Function Description

PoolVector2Array find_path ( Vector2 from, Vector2 to )

Rect2 get_bounds ( ) const

Vector2 get_closest_point ( Vector2 point ) const

PoolVector2Array get_intersections ( Vector2 from, Vector2 to ) const

float get_point_penalty ( int idx ) const

bool is_point_inside ( Vector2 point ) const

void set_point_penalty ( int idx, float penalty )

void setup ( PoolVector2Array points, PoolIntArray connections )

© 2014–2018 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.0/classes/class_polygonpathfinder.html