The AngularVelocity
property of the TrackedObject
class provides the local angular velocity of the object in degrees per second. This property is useful for determining how fast the object is rotating around its local axes.
The AngularVelocity
property of the TrackedObject
class provides the local angular velocity of the object in degrees per second. This property is useful for determining how fast the object is rotating around its local axes.
To access the AngularVelocity
property, you need to have an instance of the TrackedObject
class. This property is read-only and returns an Angles
object representing the angular velocity.
// Assuming 'trackedObject' is an instance of TrackedObject Angles angularVelocity = trackedObject.AngularVelocity; // Output the angular velocity Debug.Log($"Angular Velocity: {angularVelocity}");