docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ShakeVelocityTracker

    Helper class that tracks an object's shaking velocity over a period of time This is calculated by distance traveled vs. total range of motion

    Inheritance
    object
    ShakeVelocityTracker
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.EditorXR.Helpers
    Assembly: solution.dll
    Syntax
    [Serializable]
    public class ShakeVelocityTracker

    Properties

    Name Description
    shakeAxis

    The direction this object is shaking in this frame

    shakeStrength

    How powerful of a shake an object is experiencing this frame

    Methods

    Name Description
    ForceChangePosition(Vector3)

    Clear the buffer and set a new position

    Initialize(Vector3)

    Initializes the shake tracker's history storage and stabilizes it at its current position

    Update(Vector3, float)

    Based on new position data, calculates how much shake this object is currently experiencing

    In This Article
    Back to top
    Copyright © 2024 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)