docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class HeadingTracker

    Tracks an object's velocity with a filter to determine a reasonably steady direction for the object's current trajectory.

    Inheritance
    object
    HeadingTracker
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)