26-04-2019, 03:06 PM
(24-04-2019, 02:16 PM)josemendez Wrote: Hi there,
I'm assuming you want a to attach the softbody to a rigidbody, and have both affect each other (moving the softbody would result in the rigidbody following it, and viceversa).
The only way to achieve this is trough pin constraints. Pin constraints are formulated exactly as fixed joints are in a traditional iterative rigidbody solver, so they can be made more stiff by increasing the amount of pin constraint iterations (and/or reducing the simulation timestep) and making sure the mass ratio between the rigidbody and the pinned particles is as close to 1 as possible.
Hey!
Yes, I want them attached, but they should also stay in exactly the same positions relative to each other, not move an inch. I have increased the iterations, the stiffness is set to 1 and the mass ratio is 1. But I did not see much difference, don't really know what I'm doing wrong.
I have the ball on top of the rigidbody and when I hit play the softbody falls down onto the rigidbody before sliding down next to it.
It then acts mostly like a spring joint with the pin constraint stretching as I move the lower body before dragging the upper body after.
Any ideas what I could be doing wrong?
If you need any other info just let me know.
Thanks!