Obi Official Forum
Picking SoftBody with Twiser in VR - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Softbody (https://obi.virtualmethodstudio.com/forum/forum-12.html)
+--- Thread: Picking SoftBody with Twiser in VR (/thread-2100.html)



Picking SoftBody with Twiser in VR - Sumit - 15-03-2020

Hi, Sonrisa

    I am working on a Surgery VR Project on Unity 2019.2.
I am using Obi softbody and i want to use particle picker on my twiser to drag the tissue but i am unable to achieve.
How can i put the particle picker on my twiser so i can pick the tissue.

Thank you


RE: Picking SoftBody with Twiser in VR - josemendez - 16-03-2020

(15-03-2020, 12:49 PM)Sumit Wrote: Hi, Sonrisa

    I am working on a Surgery VR Project on Unity 2019.2.
I am using Obi softbody and i want to use particle picker on my twiser to drag the tissue but i am unable to achieve.
How can i put the particle picker on my twiser so i can pick the tissue.

Thank you

Hi,

The particle picker uses raycasting from the mouse cursor to pick particles up. If you need to use a different input (such as closing the tweezers, and detecting what particles are in between them), that's something you need to write yourself.

The particle API and collision callbacks might be of help here:
http://obi.virtualmethodstudio.com/tutorials/scriptingparticles.html
http://obi.virtualmethodstudio.com/tutorials/scriptingcollisions.html