physics_particle_set_max_count

Set the maximum number of particles permitted in a physics simulation.

Syntax:

physics_particle_set_max_count(count)


Argument Description
count The maximum number of particles to permit.


Returns: N/A


Description

This function will set the total permitted number of particles in a physics simulation. If you set this value to 0, then there is no cap the particles created, and setting it to any other value will stop any further particles being created when the total number of particles is equal to the value. Note that the minimum number of particles you can create in a simulation is 128, so setting this value any lower will have no effect (unless set to 0).


Example:

physics_particle_set_max_count(500);

The above code will set the particle cap of the physics simulation to 500.


Back: Soft Body Particles
Next: physics_particle_set_radius
© Copyright YoYo Games Ltd. 2018 All Rights Reserved