Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Synchronizing softbody, doesn't render
#3
(06-12-2022, 03:03 PM)josemendez Wrote: Hi,

You're setting particle inverse masses to zero, which in the case of softbodies requires recalculating their rest shape since the inertia tensor of the softbody changes as a result. Call UpdateParticleProperties() on the softbody after setting the particle's inverse mass. Quoting the API docs:


Note all ObiActors declare the UpdateParticleProperties() method, in some cases (like ropes) its implementation is a no-op so you can use the same code for both ropes and softbodies.
That worked!

Should I keep setting invMasses to zero? It was a suggestion from another thread
Reply


Messages In This Thread
RE: Synchronizing softbody, doesn't render - by Milionario - 06-12-2022, 03:11 PM