question

ADabrowska avatar image
0 Likes"
ADabrowska asked Jason Lightfoot edited

VR mode - grabbing moving objects

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.

FlexSim 22.2.4
vr modedynamic objectsmanual sorting
· 1
5 |100000

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

Julie Weller avatar image Julie Weller commented ·

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 0 ·

1 Answer

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

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.

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.