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



参数 描述
count The maximum number of particles to permit.

返回: N/A(无返回值)


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).



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

上一页: Soft Body Particles
下一页: physics_particle_set_radius
© Copyright YoYo Games Ltd. 2018 All Rights Reserved