A* Pathfinding Project
3.1.4
The A* Pathfinding Project for Unity 3D
|
Defines a shape for a Pathfinding::GraphUpdateObject. More...
Public Member Functions | |
bool | Contains (Node node) |
bool | Contains (Vector3 point) |
Bounds | GetBounds () |
Properties | |
bool | convex [get, set] |
Sets if the convex hull of the points should be calculated. | |
Vector3[] | points [get, set] |
Gets or sets the points of the polygon in the shape. | |
Private Member Functions | |
void | CalculateConvexHull () |
Private Attributes | |
bool | _convex |
Vector3[] | _convexPoints |
Vector3[] | _points |
Defines a shape for a Pathfinding::GraphUpdateObject.
The shape consists of a number of points which it can either calculate the convex hull of (XZ space) or use as a polygon directly.
|
getset |
Sets if the convex hull of the points should be calculated.
Convex hulls are faster but non-convex hulls can be used to specify the shape more exactly
|
getset |
Gets or sets the points of the polygon in the shape.
Will automatically calculate the convex hull if convex is set to true