Obi Official Forum
How to lock particles in place? - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Softbody (https://obi.virtualmethodstudio.com/forum/forum-12.html)
+--- Thread: How to lock particles in place? (/thread-904.html)



How to lock particles in place? - camirving - 14-02-2019

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?


RE: How to lock particles in place? - josemendez - 09-04-2019

(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).