20-06-2018, 08:02 AM
(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();