Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
Loading...
Searching...
No Matches
Input::XrRig Class Reference

Resolves raw XR play-space poses into world-space tracked hand poses. More...

#include <XrRig.h>

Collaboration diagram for Input::XrRig:

Public Member Functions

 XrRig (const XrInputHandler &inputHandler, const Engine::Rendering::Headset *headset)
 Creates an XR rig that reads raw poses from the input handler and headset.
void resolveTrackedPoses ()
 Updates cached world-space hand poses from the latest raw XR input poses.
TrackedHandPose getHandPose (Hand hand) const
 Returns the last resolved world-space pose for a hand.

Private Attributes

const XrInputHandler * inputHandler_ = nullptr
const Engine::Rendering::Headset * headset_ = nullptr
TrackedHandPose handPoses_ [2]

Detailed Description

Resolves raw XR play-space poses into world-space tracked hand poses.

Call resolveTrackedPoses() after the player origin has been updated for the frame.

Definition at line 43 of file XrRig.h.

Constructor & Destructor Documentation

◆ XrRig()

Input::XrRig::XrRig ( const XrInputHandler & inputHandler,
const Engine::Rendering::Headset * headset )

Creates an XR rig that reads raw poses from the input handler and headset.

Member Function Documentation

◆ getHandPose()

TrackedHandPose Input::XrRig::getHandPose ( Hand hand) const
nodiscard

Returns the last resolved world-space pose for a hand.

◆ resolveTrackedPoses()

void Input::XrRig::resolveTrackedPoses ( )

Updates cached world-space hand poses from the latest raw XR input poses.

Member Data Documentation

◆ handPoses_

TrackedHandPose Input::XrRig::handPoses_[2]
private

Definition at line 64 of file XrRig.h.

◆ headset_

const Engine::Rendering::Headset* Input::XrRig::headset_ = nullptr
private

Definition at line 63 of file XrRig.h.

◆ inputHandler_

const XrInputHandler* Input::XrRig::inputHandler_ = nullptr
private

Definition at line 62 of file XrRig.h.


The documentation for this class was generated from the following file:
  • /workspace/magerbeton/gl3-vulkan/code/Engine/include/Engine/Input/XrRig.h