question

Steven Chen avatar image
0 Likes"
Steven Chen asked Phil BoBo edited

VR Interaction

Hello,

It's very exciting for us that Flexsim support Oculus Touch and HTC Vive now.

Could you explain how to implement interaction with objects?

Is it able to create a control panel like HMI?

Is it possible to detect collision of player if player's head hits something?

FlexSim 17.1.0
vr
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
1 Like"
Phil BoBo answered Phil BoBo edited

A demo model that shows an example of reading the inputs from the Oculus Touch and HTC Vive controllers is in this post.

The model contains an object added through the tree with spatial nodes and OnPreDraw and OnDraw event functions. Those event functions call user commands, which contain all the logic for reading the inputs from the controllers using the stick() command and processing those inputs to interact with objects in the model.


modelonpredraw.png (205.6 KiB)
stick-command.png (64.2 KiB)
5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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