Kanda Players 0.7.0
Loading...
Searching...
No Matches
OpenXrHmdCameraUpdater Class Reference

Subscribes to the Application.onBeforeRender callback and updates main camera transform with the latest HMD input from the IOpenXrInputCollector in order to minimize tracking latency for the HMD. More...

+ Inheritance diagram for OpenXrHmdCameraUpdater:

Public Member Functions

void Enable ()
 Enables the camera updater, applying latest HMD inputs to the main camera transform in Application.onBeforeRender.
 
void Dispose ()
 

Public Attributes

float3 OriginPosition = float3.zero
 The local player origin which the main camera should be offset from. As this changes infrequently, it is intended to be set externally, in the ECS update loop.
 

Properties

bool IsEnabled [get]
 True if this class is currently enabled, updating the main camera.
 

Detailed Description

Subscribes to the Application.onBeforeRender callback and updates main camera transform with the latest HMD input from the IOpenXrInputCollector in order to minimize tracking latency for the HMD.

This is important for user comfort. We do it this way because applying these inputs in the ECS update loop results in noticeable input jitter/lag on the main camera.


The documentation for this class was generated from the following file: