question

Patryk avatar image
0 Likes"
Patryk asked Phil BoBo edited

How set Headset World Position in VR

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?

FlexSim 22.1.4
vr world position
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Phil BoBo avatar image
0 Likes"
Phil BoBo answered Phil BoBo edited

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.com)

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.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.