07-05-2021, 11:53 AM
(This post was last modified: 07-05-2021, 11:54 AM by josemendez.)
(07-05-2021, 11:42 AM)Spectra_7 Wrote: 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?
I don't see why that would be the case. You can attach as many spheres as you want, since you can attach more than 1 sphere per particle. You simply get whatever particle is in contact with the sphere, then store the position of the sphere relative to that particle at collision time, and move it to that position every frame.
(07-05-2021, 11:42 AM)Spectra_7 Wrote: 2. Will it be performance heavy to move lots of spheres to particles positions every frame?
Depends on what's "lots", and depends on how you implement it. Shouldn't really be slow to update a couple hundred, if you do it correctly.
(07-05-2021, 11:42 AM)Spectra_7 Wrote: 3. Can Pin Constraint work in this case? If yes, then could you please show any code snippet?
Yes, but pin constraints are intended for two-way coupling. I doubt that's what you need in this case. It's often easier to just move the spheres to where they should be.
You have snippets for constraint updating/creation in the manual:
http://obi.virtualmethodstudio.com/tutor...aints.html