Package org.vivecraft.api.data
Interface VRBodyPartData
public interface VRBodyPartData
Represents the data for a body part, or a device usually tied to a body part in VR, such as the HMD or a
controller.
- Since:
- 1.3.0
-
Method Summary
Modifier and TypeMethodDescriptionVec3
getDir()
Gets the forward direction this body part is facing.double
getPitch()
Gets the pitch of this body part.Vec3
getPos()
Gets the world space position for this body part.double
getRoll()
Gets the roll of this body part.org.joml.Quaternionfc
Gets the quaternion representing the rotation of this body part.double
getYaw()
Gets the yaw of this body part.
-
Method Details
-
getPos
Vec3 getPos()Gets the world space position for this body part.- Returns:
- The position of this body part in Minecraft world coordinates.
- Since:
- 1.3.0
-
getDir
Vec3 getDir()Gets the forward direction this body part is facing.- Returns:
- The forward direction of this body part.
- Since:
- 1.3.0
-
getPitch
double getPitch()Gets the pitch of this body part.- Returns:
- The pitch of this body part in radians.
- Since:
- 1.3.0
-
getYaw
double getYaw()Gets the yaw of this body part.- Returns:
- The yaw of this body part in radians.
- Since:
- 1.3.0
-
getRoll
double getRoll()Gets the roll of this body part.- Returns:
- The roll of this body part in radians.
- Since:
- 1.3.0
-
getRotation
org.joml.Quaternionfc getRotation()Gets the quaternion representing the rotation of this body part.- Returns:
- The quaternion representing the rotation of this body part.
- Since:
- 1.3.0
-