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.
Inherited Members
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. |