Class PathInterpolator

Public

Interpolates along a sequence of points.

Public Methods

GetRemainingPath (buffer)

Appends the remaining path between position and endPoint to buffer.

Public
MoveToCircleIntersection2D< T > (circleCenter3D, radius, transform)
Public
MoveToClosestPoint (point)

Move as close as possible to the specified point.

Public
MoveToLocallyClosestPoint (point, allowForwards=true, allowBackwards=true)
Public
MoveToSegment (index, fractionAlongSegment)

Move to the specified segment and move a fraction of the way to the next segment.

Public
SetPath (path)

Set the path to interpolate along.

Public

Public Variables

distance

Traversed distance from the start of the path.

Public
endPoint

Last point in the path.

Public
position

Current position.

Public
remainingDistance

Remaining distance until the end of the path.

Public
segmentIndex

Current segment.

Public
tangent

Tangent of the curve at the current position.

Public
valid

True if this instance has a path set.

Public

Private/Protected Members

NextSegment ()
Protected
PrevSegment ()
Protected
currentDistance
Private
currentSegmentLength
Private
distanceToSegmentStart
Private
path
Private
totalDistance
Private