07-05-2021, 11:42 AM
(07-05-2021, 10:27 AM)josemendez Wrote: Depending on how "solid" the sticking must be, you can rely on collision stickinness/friction:
http://obi.virtualmethodstudio.com/tutor...rials.html
Sticky materials this won't result in perfect sticking though, as if the spheres were attached/parented to the softbody particles. Over time they will slide off the softbody.
If you're after attaching, you can use collision callbacks (see:http://obi.virtualmethodstudio.com/tutorials/scriptingcollisions.html)
to detect which particles are colliding with your spheres, then use the particles API (see:http://obi.virtualmethodstudio.com/tutorials/scriptingparticles.html) to move the spheres to a fixed position relative to these particles.
Thanks for the reply.
Yes I am actually after later attaching part.
I have few questions though.
1. The slime softbody has max of 312 particles. Which means I will be only able to attach max 312 spheres? What if I want to attach over 1000 of spheres anywhere in the body?
2. Will it be performance heavy to move lots of spheres to particles positions every frame?
3. Can Pin Constraint work in this case? If yes, then could you please show any code snippet?
Thanks.