Interface VRBodyPartData

All Known Implementing Classes:
VRBodyPartDataImpl

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.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.phys.Vec3
    Gets the forward direction this body part is facing.
    net.minecraft.world.phys.Vec3
    Gets the world space position for this body part.
    org.joml.Quaternionfc
    Gets the quaternion representing the rotation of this body part.
  • Method Details

    • getPos

      net.minecraft.world.phys.Vec3 getPos()
      Gets the world space position for this body part.
      Returns:
      The position of this body part in Minecraft world coordinates.
    • getDir

      net.minecraft.world.phys.Vec3 getDir()
      Gets the forward direction this body part is facing.
      Returns:
      The forward direction of this body part.
    • 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.