Class HeadingTracker
Tracks an object's velocity with a filter to determine a reasonably steady direction for the object's current trajectory.
Inherited Members
Namespace: Unity.Cinemachine
Assembly: solution.dll
Syntax
[Obsolete]
public class HeadingTracker
Constructors
Name | Description |
---|---|
HeadingTracker(int) | Construct a heading tracker with a given filter size |
Properties
Name | Description |
---|---|
FilterSize | Get the current filter size |
Methods
Name | Description |
---|---|
Add(Vector3) | Add a new velocity frame. This should be called once per frame, unless the velocity is zero |
DecayHistory() | Decay the history. This should be called every frame. |
GetReliableHeading() | Get the filtered heading. |