physics_particle_group_count

Retrieve the number of particles currently active in a single group.

Syntax:

physics_particle_group_count(group)


`
Argument Description
group The group index (ID) of the particle group to count.


Returns: Real


Description

This function will return the number of particles that are active in a single group. The group index (ID) is the value that is returned when you call the function physics_particle_group_end().


Example:

gp_num = physics_particle_group_count(group1);

The above code will get the number of particles used to make the group indexed in the variable "group1" and store the value in a variable.


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