|
Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
|
Resolves raw XR play-space poses into world-space tracked hand poses. More...
#include <XrRig.h>
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] |
Resolves raw XR play-space poses into world-space tracked hand poses.
Call resolveTrackedPoses() after the player origin has been updated for the frame.
| 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.
|
nodiscard |
Returns the last resolved world-space pose for a hand.
| void Input::XrRig::resolveTrackedPoses | ( | ) |
Updates cached world-space hand poses from the latest raw XR input poses.
|
private |
|
private |
|
private |