09-03-2018, 09:10 AM
(08-03-2018, 04:12 PM)matchalover Wrote: I'm trying to make a virtual surgery by LeapMotion (for control hands and tools) and Obi (for simulate human body's parts). I'm stuck in making the a tool to grab an Obi object. I can do with its collider but not the Obi form. Do you have any suggest?
P/s: Can i have a private support (email, chat...)? Because it's kinda hard to explain my idea. Thanks
Hi,
You just need to find the particle that's nearest to the controller, set its inverse mass to 0 (to fix it in place so that dynamics are no longer applied to it) and set its position every frame as long as the user is grabbing it. You can use the Obi's API for this:
http://obi.virtualmethodstudio.com/tutor...icles.html
Once the user releases the particle, just set its inverse mass back to whatever it was.