Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Obi cloth for VR grab
#3
Hi there!

There's many ways to go about this. All of them involve:
1.- Determining proximity between the hand and cloth particles.
2.- Fixing particles in place, using one of the many methods available: attachments, raw pin constraints, setting particle positions, etc.

Raycasting as Jhonatas proposes isn't really a good fit for VR, as a hand in world space doesn't implicitly define a ray direction like a mouse position in the near plane of the camera frustum does. Using colliders and contact callbacks is a better approach:
http://obi.virtualmethodstudio.com/tutor...sions.html

Once you know what particles are near/touching the hand, you can create a pin constraint for each one. This is the approach used in this thread: http://obi.virtualmethodstudio.com/forum...-2422.html

I recommend you read on collision callbacks, particle and constraint scripting:
http://obi.virtualmethodstudio.com/tutor...sions.html
http://obi.virtualmethodstudio.com/tutor...icles.html
http://obi.virtualmethodstudio.com/tutor...aints.html
Reply


Messages In This Thread
Obi cloth for VR grab - by Narmeen - 03-03-2021, 08:39 PM
RE: Obi cloth for VR grab - by JhonatasFarias - 04-03-2021, 03:33 AM
RE: Obi cloth for VR grab - by josemendez - 04-03-2021, 08:35 AM
RE: Obi cloth for VR grab - by Narmeen - 04-03-2021, 10:04 AM
RE: Obi cloth for VR grab - by JhonatasFarias - 04-03-2021, 03:10 PM