예제 #1
0
 private void checkRecenterPose(float dt)
 {
     if (isInRecenterPose())
     {
         recenteringPoseDuration += dt;
         if (recenteringPoseDuration >= RECENTER_POSE_TIME)
         {
             LogDebug("Triggered Recenter pose action.");
             VRManager.tryRecenter();
             recenteringPoseDuration = 0f;
         }
     }
     else
     {
         recenteringPoseDuration = 0f;
     }
 }