update VR camera even if setRealTimeSimulation(0)

also update w component in setVRCameraState orientation
This commit is contained in:
Erwin Coumans
2017-05-17 16:29:30 -07:00
parent 40f923647a
commit 9c4a5f9336
2 changed files with 12 additions and 8 deletions

View File

@@ -2712,6 +2712,8 @@ int b3SetVRCameraRootOrientation(b3SharedMemoryCommandHandle commandHandle, doub
command->m_vrCameraStateArguments.m_rootOrientation[0] = rootOrn[0];
command->m_vrCameraStateArguments.m_rootOrientation[1] = rootOrn[1];
command->m_vrCameraStateArguments.m_rootOrientation[2] = rootOrn[2];
command->m_vrCameraStateArguments.m_rootOrientation[3] = rootOrn[3];
return 0;
}