Defines a shape for a Pathfinding.GraphUpdateObject.
More...
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.
- See Also
- Pathfinding.GraphUpdateObject.shape
|
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.
|
|
void CalculateConvexHull |
( |
| ) |
|
|
private |
bool Contains |
( |
Vector3 |
point | ) |
|
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
Gets or sets the points of the polygon in the shape.
These points should be specified in clockwise order. Will automatically calculate the convex hull if convex is set to true
The documentation for this class was generated from the following file:
- /Users/arong/Unity/a-pathfinding-project/Assets/AstarPathfindingProject/Core/GraphUpdateShape.cs