Obi Official Forum
Help Stop/restart emission, force to 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 Stop/restart emission, force to particle (/thread-625.html)



Stop/restart emission, force to particle - sazatai - 19-06-2018

Please excuse for my question.

I read the document and get the particle rendered as fluid. really nice.
Now I would like to add following function but can't find how to do that.
Could you tell me how to do that? or already any script are exsisting?

- stop and restart particle emission
- change the gravity of all particles in runtime

Thank you in advance for your help.


RE: Stop/restart emission, force to particle - josemendez - 20-06-2018

(19-06-2018, 04:09 AM)sazatai Wrote: Please excuse for my question.

I read the document and get the particle rendered as fluid. really nice.
Now I would like to add following function but can't find how to do that.
Could you tell me how to do that? or already any script are exsisting?

- stop and restart particle emission
- change the gravity of all particles in runtime

Thank you in advance for your help.

To stop and restart particle emission, set the emitter's "speed" to zero, then back to the desired value.
To change gravity, set the ObiSolver's gravity value. Like this:
Code:
Solver.parameters.gravity = new Vector3(0,-9.81,0);
            Solver.UpdateParameters();



RE: Stop/restart emission, force to particle - sazatai - 20-06-2018

(20-06-2018, 08:02 AM)josemendez Wrote: To stop and restart particle emission, set the emitter's "speed" to zero, then back to the desired value.
To change gravity, set the ObiSolver's gravity value. Like this:
Code:
Solver.parameters.gravity = new Vector3(0,-9.81,0);
            Solver.UpdateParameters();

Really thanks.
That's easy enough, I should try them soon. Sonrisa