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 SummaryModifier and TypeMethodDescriptionorg.bukkit.util.VectorgetDir()Gets the forward direction this body part is facing.doublegetPitch()Gets the pitch of this body part.org.bukkit.util.VectorgetPos()Gets the world space position for this body part.doublegetRoll()Gets the roll of this body part.org.joml.QuaternionfcGets the quaternion representing the rotation of this body part.doublegetYaw()Gets the yaw of this body part.
- 
Method Details- 
getPosorg.bukkit.util.Vector 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
 
- 
getDirorg.bukkit.util.Vector getDir()Gets the forward direction this body part is facing.- Returns:
- The forward direction of this body part.
- Since:
- 1.3.0
 
- 
getPitchdouble getPitch()Gets the pitch of this body part.- Returns:
- The pitch of this body part in radians.
- Since:
- 1.3.0
 
- 
getYawdouble getYaw()Gets the yaw of this body part.- Returns:
- The yaw of this body part in radians.
- Since:
- 1.3.0
 
- 
getRolldouble getRoll()Gets the roll of this body part.- Returns:
- The roll of this body part in radians.
- Since:
- 1.3.0
 
- 
getRotationorg.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
 
 
-