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

Definition at line 137 of file AVR_GenericXRDevice.cs.

138  {
139 #if AVR_NET
140  if (IsOnline)
141  {
142  sync();
143  if (!IsOwner) return;
144  }
145 #endif
146 
147  if (tracking && (updateType == TrackingUpdateType.OnUpdate || updateType == TrackingUpdateType.OnBeforeRenderAndUpdate))
148  {
149  UpdateTracking();
150  }
151  }
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 ...