PolygonPathFinder
继承
简要描述
描述
方法
返回值类型 | 方法名称 |
---|---|
PoolVector2Array | find_path(from: Vector2, to: Vector2) |
Rect2 | get_bounds() const |
Vector2 | get_closest_point(point: Vector2) const |
PoolVector2Array | get_intersections(from: Vector2, to: Vector2) const |
float | get_point_penalty(idx: int) const |
bool | is_point_inside(point: Vector2) const |
void | set_point_penalty(idx: int, penalty: float) |
void | setup(points: PoolVector2Array, connections: PoolIntArray) |
方法说明
- find_path find_path(from: Vector2, to: Vector2)
- get_bounds get_bounds() const
- get_closest_point get_closest_point(point: Vector2) const
- get_intersections get_intersections(from: Vector2, to: Vector2) const
- get_point_penalty get_point_penalty(idx: int) const
- is_point_inside is_point_inside(point: Vector2) const
- set_point_penalty set_point_penalty(idx: int, penalty: float)
- setup setup(points: PoolVector2Array, connections: PoolIntArray)