Obi Official Forum
freeze position - 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: freeze position (/thread-3248.html)



freeze position - saltuksy - 26-12-2021

Hi! Is it possible to freeze position(x,z) for my obi object?


RE: freeze position - josemendez - 10-01-2022

(26-12-2021, 01:30 PM)saltuksy Wrote: Hi! Is it possible to freeze position(x,z) for my obi object?

Hi,

Yes, simply iterate trough all its particles and set their x and z positions to their original ones. To learn how to get/set per-particle data, see:
http://obi.virtualmethodstudio.com/manual/6.3/scriptingparticles.html