Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Stop/restart emission, force to particle
#1
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.
Reply
#2
(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();
Reply
#3
(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
Reply