Obi Official Forum
Attach Game Objects To Obi Softbody - 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: Attach Game Objects To Obi Softbody (/thread-3039.html)



Attach Game Objects To Obi Softbody - WarrockTr - 03-08-2021

I want to attach non-jelly objects to my slime. I need to reach the closest particles for those game objects to set their positions. Those game objects will stick to the surface of that slime. 


RE: Attach Game Objects To Obi Softbody - josemendez - 03-08-2021

(03-08-2021, 10:00 AM)WarrockTr Wrote: I want to attach non-jelly objects to my slime. I need to reach the closest particles for those game objects to set their positions. Those game objects will stick to the surface of that slime. 

Use a combination of collision callbacks to detect objects in contact with particles:
http://obi.virtualmethodstudio.com/manual/6.2/scriptingcollisions.html

And pin constraints to attach these objects to the particles:
http://obi.virtualmethodstudio.com/manual/6.2/scriptingconstraints.html