Interface VRPose

All Known Implementing Classes:
VRPoseImpl

public interface VRPose
Represents the pose of a player in VR, including the data for each body part and additional information such as handedness and player scale.
  • Method Details

    • getBodyPartData

      VRBodyPartData getBodyPartData(PlayerBodyPart bodyPart)
    • isLeftHanded

      boolean isLeftHanded()
    • getPlayerScale

      float getPlayerScale()
      Gets the scale of the player in VR, calculated using playerHeightScale * worldScale
      Returns:
      player scale
    • relativeToPosition

      VRPose relativeToPosition(net.minecraft.world.phys.Vec3 position)
      Returns a new VRPose whose body part positions are offset relative to the given position.
      Parameters:
      position - the reference position
      Returns:
      a new VRPose with positions relative to the reference position