Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Interacting with cloth with OVRGrabber
#1
Hi-

I am using an Oculus touch with Obi Cloth- so far, the hands can cause collisions if the hands have obi colliders on them, but I cannot set up a grabbing dynamic. OVRGrabble requires a rigidbody and collider to grab, but the particles don’t actually have colliders enabled on all the dynamic surfaces. Is there a way to allow for interaction with particle cloths using the properties of collision and rigid bodies?
Reply
#2
(06-02-2019, 06:32 PM)Mrpillis Wrote: Hi-

I am using an Oculus touch with Obi Cloth- so far, the hands can cause collisions if the hands have obi colliders on them, but I cannot set up a grabbing dynamic. OVRGrabble requires a rigidbody and collider to grab, but the particles don’t actually have colliders enabled on all the dynamic surfaces. Is there a way to allow for interaction with particle cloths using the properties of collision and rigid bodies?

Best approach to this is modifying particle properties to move them around. Set the inverse mass and the velocity of the grabbed particle(s) to zero, and set their position while the user is moving his hand around. Then reset their inverse mass once the user let go.

See:
http://obi.virtualmethodstudio.com/tutor...sions.html
http://obi.virtualmethodstudio.com/tutor...icles.html

Also, take a look at ObiParticlePicker.cs and ObiParticleDragger.cs as reference. The first allows to pick a particle using the mouse cursor (via raycast), the second one subscribes to the events of the picker to implement particle dragging.
Reply