VR mode - grabbing moving objects

VR mode - grabbing moving objects

ADabrowska
Not applicable
14 Views
2 Replies
Message 1 of 3

VR mode - grabbing moving objects

ADabrowska
Not applicable

[ FlexSim 22.2.4 ]

Hello everyone,

Has anyone tried to develop a VR model in which it is possible to pick up moving objects? Objects that are in the sample VR models are static (e.g., objects lying on a table). I am trying to develop a model in which it will be possible to pick up objects that are moving on the conveyor (VR hand sorting). I think, the problem is the location of this type of object, which is referred to the location of the conveyor. It is not a global location.

Have any of you tried perhaps to develop a model similar to mine?

Thank you in advance for your help.

0 Likes
Accepted solutions (1)
15 Views
2 Replies
Replies (2)
Message 2 of 3

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

You can find the location of any object in terms of another object's coordinate space by using the project method of the Vec3 type returned by location:

targetobject.location.project(targetobject.up,relativeObject.up)

or use global space:

targetobject.location.project(targetobject.up,model())

As such you should be able to interpret the grab action and compare the distances to the objects - just be sure to use updatelocations() on the container or items before you evaluate their proximity with each new grab event.

One final task may be to stop the item before you move it so that any events associated with it are not left on the event list.

0 Likes
Message 3 of 3

julie_weller
Not applicable

Hi @ADabrowska, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes