예제 #1
0
 private void BasicVis_UpdateFrame(object sender, FrameEventArgs e)
 {
     if (!hasStarted)
     {
         hasStarted = true;
         VisStarted?.Invoke(this, e);
     }
     if (UpdateBodiesCollection())
     {
         PopulateVertexBuffer();
     }
     if (VRFlag)
     {
         vrScene.UpdateTracking();         // update tracking every frame
     }
 }
예제 #2
0
 private void HelloVRWindow_UpdateFrame(object sender, FrameEventArgs e)
 {
     scene.UpdateTracking();
 }