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

Defines a shape for a Pathfinding.GraphUpdateObject. More...

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

Public Member Functions

bool Contains (GraphNode 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
 

Member Function Documentation

void CalculateConvexHull ( )
private
bool Contains ( GraphNode  node)
bool Contains ( Vector3  point)
Bounds GetBounds ( )

Member Data Documentation

bool _convex
private
Vector3 [] _convexPoints
private
Vector3 [] _points
private

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: