Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Softbody Scale
#3
(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.
Reply


Messages In This Thread
Softbody Scale - by patriot4947 - 18-01-2023, 07:48 PM
RE: Softbody Scale - by josemendez - 19-01-2023, 08:59 AM
RE: Softbody Scale - by patriot4947 - 21-01-2023, 06:13 PM