Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to lock particles in place?
#2
(14-02-2019, 05:07 PM)camirving Wrote: Hi there!

I'm trying to fix a part of my Softbody in place.

This is the code I'm using:

[Image: MDLsABr.png]

However, by settingĀ "solver.invMasses" to zero, i start getting

[Image: 8iRidlM.png]

and the simulation goes haywire.

what am I doing wrong?

You're checking if the actor is NOT in the solver, in that case solver property accesses will of course be invalid. Remove the "!" in front of actor.InSolver, or change actor properties instead of solver properties and then call actor.PushDataToSolver(ParticleData.VELOCITIES | ParticleData.INV_MASSES).
Reply


Messages In This Thread
How to lock particles in place? - by camirving - 14-02-2019, 05:07 PM
RE: How to lock particles in place? - by josemendez - 09-04-2019, 08:14 AM