VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
void AVR.Core.AVR_GenericXRDevice.OnBeforeRender ( )
inlineprotected

Definition at line 122 of file AVR_GenericXRDevice.cs.

123  {
124 #if AVR_NET
125  if (IsOnline)
126  {
127  sync();
128  if (!IsOwner) return;
129  }
130 #endif
131  if (tracking && (updateType == TrackingUpdateType.OnBeforeRender || updateType == TrackingUpdateType.OnBeforeRenderAndUpdate))
132  {
133  UpdateTracking();
134  }
135  }
TrackingUpdateType updateType
Defines when positional tracking should take place. Recommended setting is OnBeforeRenderAndUpdate ...
bool tracking
Defines if spatial tracking should be performed.
void UpdateTracking()
Updates the controller position and rotation.
TrackingUpdateType
Defines when positional tracking should take place. Recommended setting is OnBeforeRenderAndUpdate ...