physics_particle_group_get_mass

With this function you can retrieve the mass of an entire group of particles. The group value is that which was returned when you created the group of particles using the function physics_particle_group_end().

 

Syntax:

physics_particle_group_get_mass(group)

Argument Type Description
group Physics Particle Group ID The particle group to get.

 

Returns:

Real

 

Example:

var _mass = physics_particle_group_get_mass(group1);

The above code will get the mass of the particle group indexed in the variable "group1" and store it in a variable.