physics_particle_get_radius

Get the current radius defined for all particles.

Syntax:

physics_particle_get_radius()


Returns: Real


Description

With this function you can find out what the current radius (in pixels) is for particles in the physics simulation (you can set this value using physics_particle_set_radius()).


Example:

if physics_particle_get_radius() < 32
   {
   physics_particle_set_radius(physics_particle_get_radius() + 1);
   }

The above code will check the current radius of the particles in the simulation and if it is less than 32, then it will increase their size by 1.


Back: Soft Body Particles
Next: physics_particle_get_density
© Copyright YoYo Games Ltd. 2019 All Rights Reserved