Mod API VRClientAPI - Vivecraft/VivecraftMod GitHub Wiki

You can find the full javadoc for the VRClientAPI here.

Allows to interact with the local main player side of Vivecraft:

  • Check VR states with isVRInitialized and isVRActive.
  • register Trackers/Modules for the Local Player with addClientRegistrationHandler.
  • get the players device/body part data in different spaces:
    • positions relative to the players room can be received with:
    • positions relative to the world can be received with:
  • get world poses of previous ticks with getHistoricalVRPoses, this has built in methods to get the speed and movement direction of body parts.
  • trigger haptics with triggerHapticPulse
  • get some information about the players setup, with:
    • isSeated: If the player plays without controllers, and instead with mouse and keyboard.
    • isLeftHanded: If the player uses the left hand as the dominant hand.
    • getFBTMode: If the player has any Full Body Trackers available.
    • getWorldScale: If the player has scaled the world to be smaller or bigger.
  • show hide the VR keyboard with: