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 } }
private void HelloVRWindow_UpdateFrame(object sender, FrameEventArgs e) { scene.UpdateTracking(); }