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 Details

    • getBodyPartData

      @Nullable VRBodyPartData getBodyPartData(VRBodyPart vrBodyPart)
      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 with getFBTMode().
      Since:
      1.3.0
    • getHead

      default VRBodyPartData 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

      default VRBodyPartData getHand(InteractionHand hand)
      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

      default VRBodyPartData getMainHand()
      Gets the body part data for the main-hand.
      Returns:
      The main-hand's body part data.
      Since:
      1.3.0
    • getOffHand

      default VRBodyPartData getOffHand()
      Gets the body part data for the off-hand.
      Returns:
      The off-hand's body part data.
      Since:
      1.3.0