21-01-2023, 06:13 PM
(This post was last modified: 21-01-2023, 06:15 PM by patriot4947.)
(19-01-2023, 08:59 AM)josemendez Wrote: Hi!
Yes, you can translate the solver as well as scaling it. If you scale it by 0.5 in the X axis, translating it by 0.5*softbody.localPosition.x should keep the softbody from moving.
You can't set the position of a softbody by setting its transform: it's made up of multiple particles, you need to move the particles themselves to translate it. You might want to do this manually using the particles API, or use softbody.Teleport(position, rotation);
I already tried your formula but for some reason it didn't work (Some errors occurred and I supposed these errors depend on the Obi package.). I made clean demo and everything worked fine.
Thanks for your quick answer.