physics_particle_get_gravity_scale

Get the current gravity scale factor as defined for all particles.

Syntax:

physics_particle_get_gravity_scale()


Returns: Real


Description

With this function you can find out what the current gravity scale factor is for particles in the physics simulation (you can set this value using physics_particle_set_gravity_scale()).


Example:

physics_particle_set_gravity_scale(physics_particle_get_gravity_scale() + 0.1);

The above code will set the gravity scale.


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