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 Summary
Modifier and TypeMethodDescriptiongetBodyPartData(PlayerBodyPart bodyPart) floatGets the scale of the player in VR, calculated usingplayerHeightScale * worldScalebooleanrelativeToPosition(net.minecraft.world.phys.Vec3 position) Returns a newVRPosewhose body part positions are offset relative to the given position.
-
Method Details
-
getBodyPartData
-
isLeftHanded
boolean isLeftHanded() -
getPlayerScale
float getPlayerScale()Gets the scale of the player in VR, calculated usingplayerHeightScale * worldScale- Returns:
- player scale
-
relativeToPosition
Returns a newVRPosewhose body part positions are offset relative to the given position.- Parameters:
position- the reference position- Returns:
- a new
VRPosewith positions relative to the reference position
-