How set Headset World Position in VR

How set Headset World Position in VR

patryk_u2
Not applicable
312 Views
1 Reply
Message 1 of 2

How set Headset World Position in VR

patryk_u2
Not applicable

[ FlexSim 22.1.4 ]

Is it possible to change the base headset position read by flexsim?

In VR, you can change your position by changing the viewpoint [x, y] (view) parameters. At the time of configuring the goggles or putting them on, the position of the goggles in FlexSim is determined, which can be checked by the stick (-1, STICK_VR_HAND_WORLD_POSITION) functions. But depending on how far in the real world I move away from the setup points, the difference (deltax, deltay) increases.

double deltax = (viewpointx (view) .value-stick (-1, STICK_VR_HAND_WORLD_POSITION) [1]);

double deltay = (viewpointy (view) .value-stick (-1, STICK_VR_HAND_WORLD_POSITION) [2]);

Is it possible to reset the base position so that both values (deltax, deltay) are equal to 0, i.e. to set up regardless of the position in the real world exactly where it wants to?

0 Likes
Accepted solutions (1)
313 Views
1 Reply
Reply (1)
Message 2 of 2

philboboADSK
Autodesk
Autodesk
Accepted solution

applicationcommand("recenteroculusrift") will reset the headset's origin to its current position. (This works for any VR headset despite its name.)

There is an option within the VR software when you push the home button to reset the headset's center position as well. This option has various names and changes locations depending on your VR software version, but historically, it has always been somewhere if you push the home button and look around for it.

For example:

How do I recenter my headset view when I'm using Meta Quest 2 or Meta Quest? | Meta Store (facebook....

How to Recenter and Reorient Your Playspace in SteamVR (roadtovr.com)

When demoing simulation models in VR, I find it best to use Global Preferences > Customize Toolbar to add a custom button to the toolbar that calls applicationcommand("recenteroculusrift"). Then after the user puts on the headset and you press VR Mode, tell them to look straight forward and you press the Recenter Headset custom button for them.

When working on VR alone, I typically just use the button within the VR software itself. Trying to direct users to that button in the Home screen often leads to confusion.



Phil BoBo
Sr. Manager, Software Development
0 Likes