Package org.vivecraft.api.data
Interface VRPose
public interface VRPose
Represents the pose of the VR player. In other words, the position and rotation data of all tracked body parts of
the VR player.
- Since:
- 1.3.0
-
Method Summary
Modifier and TypeMethodDescriptiongetBodyPartData
(VRBodyPart vrBodyPart) Gets the pose data for a body part.Gets the full-body tracking mode the player was using when the pose was created.default VRBodyPartData
getHand
(InteractionHand hand) Gets the body part data for a given hand.default VRBodyPartData
getHead()
Gets the body part pose data for the head.default VRBodyPartData
Gets the body part data for the main-hand.default VRBodyPartData
Gets the body part data for the off-hand.boolean
Gets whether the player was using left-handed mode when the pose was created.boolean
isSeated()
Gets whether the player was in seated mode when the pose was created.
-
Method Details
-
getBodyPartData
Gets the pose data for a body part.- Parameters:
vrBodyPart
- The body part to get the pose data for.- Returns:
- The specified body part's pose data, or
null
if that body part is not available with the current FBTMode, which can be checked withgetFBTMode()
. - Since:
- 1.3.0
-
getHead
Gets the body part pose data for the head.- Returns:
- Body part pose data for the head.
- Since:
- 1.3.0
-
isSeated
boolean isSeated()Gets whether the player was in seated mode when the pose was created.- Returns:
- Whether the player was in seated mode when the pose was created.
- Since:
- 1.3.0
-
isLeftHanded
boolean isLeftHanded()Gets whether the player was using left-handed mode when the pose was created.- Returns:
- Whether the player was using left-handed mode when the pose was created.
- Since:
- 1.3.0
-
getFBTMode
FBTMode getFBTMode()Gets the full-body tracking mode the player was using when the pose was created.- Returns:
- The full-body tracking mode the player was using when the pose was created.
- Since:
- 1.3.0
-
getHand
Gets the body part data for a given hand.- Parameters:
hand
- The interaction hand to get hand data for.- Returns:
- The specified hand's body part data.
- Since:
- 1.3.0
-
getMainHand
Gets the body part data for the main-hand.- Returns:
- The main-hand's body part data.
- Since:
- 1.3.0
-
getOffHand
Gets the body part data for the off-hand.- Returns:
- The off-hand's body part data.
- Since:
- 1.3.0
-