"For optimal tracking, after you press the VR Mode button in FlexSim and put on the headset, make sure you recenter the headset in the VR settings while standing or sitting in the middle of your play area and looking straight forward. On the Vive, push the system button to open the Steam VR overlay, then press the Settings button near the bottom-right corner, then look straight forward and press the Reset Seated Position button. On the Oculus, press the Oculus home button and then press the Reset View in App button in the upper-right corner."
(from VR Demo Models)
Alternatively, you can use applicationcommand("recenteroculusrift"); to do the same thing from FlexScript. (That application command works with both Oculus and Vive despite its name.)
The value set by ModelOnPreDraw is the "centered" position. Where that position is in your real space is determined by the position of the headset when you follow the steps above.
Phil BoBo
Sr. Manager, Software Development