Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Grabbing physics reaction to softbody/ Grasping an organ for my project
#4
(19-07-2021, 03:50 PM)sanchitgng Wrote: Actually, for grasping I am using the default particle picker with the line renderer, I aligned the instrument with the particle picker so it seems that it's the instrument that is doing it, I was sceptical about this process, grasping thing itself. maybe you can help, please,
can you please tell me how to implement proper grasping then? if there's any better method please tell me, better if you can include code that can help me setting up this grasping thing, it's an issue for many.

There's a lot of ways to implement grabbing, probably as many as use cases you can think of. Obi already includes many ways to do this: ObiParticlePicker, ObiParticleAttachment, ObiContactGrabber, etc. These allow you to grab particles using a screen-based raycast, attach them to existing transforms/rigidbodies, or grab them in response to a collision with a certain object.

None of them are an exact fit for your use case (bite/pinch the softbody and create wrinkles around it), so you will have to write your own approach. That's what the particle API is designed for:

http://obi.virtualmethodstudio.com/manua...icles.html

All existing grabbing methods described above are built on top of this API. You might also find queries and collision callbacks useful:
http://obi.virtualmethodstudio.com/manua...eries.html
http://obi.virtualmethodstudio.com/manua...sions.html

kind regards,
Reply


Messages In This Thread
RE: Grabbing physics reaction to softbody/ Grasping an organ for my project - by josemendez - 20-07-2021, 08:28 AM