Description
The AngularVelocity
property of the TrackedObject
class in the Sandbox.VR
namespace provides the local angular velocity of the tracked object, measured in degrees per second. This property is useful for determining how fast the object is rotating around its local axes.
Usage
To access the AngularVelocity
property, you need to have an instance of the TrackedObject
class. This property is read-only and provides the current angular velocity of the object.
Example
// Assuming 'trackedObject' is an instance of TrackedObject
Angles currentAngularVelocity = trackedObject.AngularVelocity;
// Output the angular velocity
// Note: Replace with appropriate logging or handling
// Debug.Log($"Current Angular Velocity: {currentAngularVelocity}");