docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class AttachPointVelocityTracker

    Tracks the velocity and angular velocity of an attachment point in a XR interaction context. It uses a cache to calculate these velocities over a series of frames.

    Inheritance
    object
    AttachPointVelocityTracker
    Implements
    IAttachPointVelocityTracker
    IAttachPointVelocityProvider
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.XR.Interaction.Toolkit.Interaction
    Assembly: solution.dll
    Syntax
    public class AttachPointVelocityTracker : IAttachPointVelocityTracker, IAttachPointVelocityProvider

    Methods

    Name Description
    GetAttachPointAngularVelocity()

    Retrieves the current angular velocity of the attachment point.

    GetAttachPointVelocity()

    Retrieves the current linear velocity of the attachment point.

    UpdateAttachPointVelocityData(Transform)

    Updates attach point velocity data using only the attachment transform.

    UpdateAttachPointVelocityData(Transform, Transform)

    Updates attach point velocity data using the attachment transform and an XR Origin Transform.

    Extension Methods

    AttachPointVelocityProviderExtensions.GetAttachPointAngularVelocity(IAttachPointVelocityProvider, Transform)
    AttachPointVelocityProviderExtensions.GetAttachPointVelocity(IAttachPointVelocityProvider, Transform)
    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)