Obi Official Forum
Help Velocity of particle - 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: Help Velocity of particle (/thread-2081.html)



Velocity of particle - palad333 - 04-03-2020

I need get velocity of particle to make the music louder or quieter depending on whether the fluid is flowing or not
ObiEmitter.emitterblueprint.velocities dont work.


RE: Velocity of particle - josemendez - 04-03-2020

(04-03-2020, 04:23 PM)palad333 Wrote: I need get velocity of particle to make the music louder or quieter depending on whether the fluid is flowing or not
ObiEmitter.emitterblueprint.velocities dont work.

Hi,

Blueprints are just assets, used to store data in disk. Their values are used to instantiate fluid, not updated during simulation.

Use solver.velocities instead, as explained in the manual:
http://obi.virtualmethodstudio.com/tutorials/scriptingparticles.html