/// <summary>
 /// The GetControllerVelocity method is used for getting the current velocity of the physical game controller. This can be useful to determine the speed at which the controller is being swung or the direction it is being moved in.
 /// </summary>
 /// <param name="controllerReference">The reference to the controller.</param>
 /// <returns>A 3 dimensional vector containing the current real world physical controller velocity.</returns>
 public static Vector3 GetControllerVelocity(VRTK_ControllerReference controllerReference)
 {
     return(VRTK_SDK_Bridge.GetControllerVelocity(controllerReference));
 }
Ejemplo n.º 2
0
 public static Vector3 GetVelocityOnIndex(uint index)
 {
     return(VRTK_SDK_Bridge.GetControllerVelocity(VRTK_ControllerReference.GetControllerReference(index)));
 }