Пример #1
0
 /// <summary>Get raw rotation of the player hand</summary>
 public static Quaternion GetHandRotation(this InputSteamVR self, Side side)
 {
     return(SteamVR_Actions.Default.Pose.GetLocalRotation((side == Side.Right) ? SteamVR_Input_Sources.RightHand : SteamVR_Input_Sources.LeftHand));
 }
Пример #2
0
 /// <summary>Get raw angular velocity of the player hand</summaryt
 public static Vector3 GetHandAngularVelocity(this InputSteamVR self, Side side)
 {
     return(SteamVR_Actions.Default.Pose.GetAngularVelocity((side == Side.Right) ? SteamVR_Input_Sources.RightHand : SteamVR_Input_Sources.LeftHand));
 }