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.

Inner Types

Shape optimized for burst.

Public Methods

Contains (node)
Public
Contains (point)
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

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