Class HeadingTracker
Tracks an object's velocity with a filter to determine a reasonably steady direction for the object's current trajectory.
상속된 멤버
네임스페이스: Cinemachine.Utility
어셈블리: solution.dll
구문
public class HeadingTracker
생성자
이름 | 설명 |
---|---|
HeadingTracker(int) | Construct a heading tracker with a given filter size |
프로퍼티
이름 | 설명 |
---|---|
FilterSize | Get the current filter size |
메서드
이름 | 설명 |
---|---|
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. |