A* Pathfinding Project  3.1.4
The A* Pathfinding Project for Unity 3D
All Classes Namespaces Files Functions Variables Enumerations Properties Groups Pages
GraphUpdateShape Class Reference

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
 

Detailed Description

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

Property Documentation

bool convex
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

Vector3 [] points
getset

Gets or sets the points of the polygon in the shape.

Will automatically calculate the convex hull if convex is set to true


The documentation for this class was generated from the following file: