UxrGrabManager.GetGrabbedObjectVelocity Method

Gets the current world-space velocity, in units per second, of an object that is being grabbed.

Namespace: UltimateXR.Manipulation
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public Vector3 GetGrabbedObjectVelocity(
	UxrGrabbableObject grabbableObject,
	bool smooth = true
)

Parameters

 

grabbableObject
Type: UltimateXR.Manipulation.UxrGrabbableObject
Grabbable object
smooth (Optional)
Type: System.Boolean
Whether to smooth the velocity using a previous frame data window for improved behavior

Return Value

Type: Vector3
Velocity in world-space units per second

See Also

Reference

UxrGrabManager Class
UltimateXR.Manipulation Namespace