跳到主要内容

PolygonPathFinder

继承

Resource

简要描述

描述

方法

返回值类型方法名称
PoolVector2Arrayfind_path(from: Vector2, to: Vector2)
Rect2get_bounds() const
Vector2get_closest_point(point: Vector2) const
PoolVector2Arrayget_intersections(from: Vector2, to: Vector2) const
floatget_point_penalty(idx: int) const
boolis_point_inside(point: Vector2) const
voidset_point_penalty(idx: int, penalty: float)
voidsetup(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)