Obi Official Forum
changing state in runtime - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Fluid (https://obi.virtualmethodstudio.com/forum/forum-3.html)
+--- Thread: changing state in runtime (/thread-2103.html)



changing state in runtime - julienrobert - 19-03-2020

My goal is to be able to change the state/behavior of the particles in runtime through code.

Is it possible to modify the blueprint with script in real-time? Or is there another way to achieve my goal?

Thanks


RE: changing state in runtime - josemendez - 20-03-2020

(19-03-2020, 05:51 PM)julienrobert Wrote: My goal is to be able to change the state/behavior of the particles in runtime through code.

Is it possible to modify the blueprint with script in real-time? Or is there another way to achieve my goal?

Thanks

Hi there,

Once a particle is emitted, it has its own properties and does not depend on the blueprint.

The solver contains an array for each particle property: surface tension, viscosity, vorticity, etc. You can set their values as you'd do with any other particle property (positions, velocities...). See:
http://obi.virtualmethodstudio.com/tutorials/scriptingparticles.html