Class GraphUpdateShape

Public

Defines a shape for a Pathfinding.GraphUpdateObject.

The shape consists of a number of points which it can either calculate the convex hull of or use as a polygon directly.

A shape is essentially a 2D shape however it can be rotated arbitrarily. When a matrix and a list of points is specified in the constructor the matrix decides what direction is the 'up' direction. When checking if a point is contained in the shape, the point will be projected down on a plane where the 'up' direction is the normal and then it will check if the shape contains the point.

Public Methods

Contains (point)
Public
Contains (node)
Public
GetBounds ()

World space bounding box of this shape.

Public
GraphUpdateShape ()
Public
GraphUpdateShape (points, convex, matrix, minimumHeight)

Construct a shape.

Public

Public Static Methods

GetBounds (points, matrix, minimumHeight)
Public Static

Public Variables

convex

Sets if the convex hull of the points should be calculated.

Public
minimumHeight
Public
points

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

Public

Private/Protected Members

_convex
Private
_convexPoints
Private
_points
Private
CalculateConvexHull ()
Private
forward
Private
GetBounds (points, right, up, forward, origin, minimumHeight)
Private Static
origin
Private
right
Private
up
Private