physics_particle_get_group_flags

Get the group type flags for a group of particles.

Syntax:

physics_particle_get_group_flags(group)


Argument Description
group The particle group to get.


Returns: Real


Description

With this function you can retrieve the group flags for a 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, and the function will return a value which is the combined value of the currently set flags.


Example:

var flags = physics_particle_get_group_flags(group, flags);
if flags != phy_particle_group_flag_solid | phy_particle_group_flag_rigid
   {
   flags = phy_particle_group_flag_solid | phy_particle_group_flag_rigid;
   physics_particle_set_group_flags(group, flags);
   }

The above code will create a variable to store the flags value and then use it to check the flags of the group indexed in the variable "group". If they are not the same, the group is set with these flags.


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