physics_particle_delete_region_circle

Delete all particles from a circular area within the physics simulation.

Syntax:

physics_particle_delete_region_circle(x, y, radius)


Argument Description
x The x position of the center of the area to delete.
y The y position of the center of the area to delete.
radius The radius (in pixels) of the circular area to delete.


Returns: N/A


Description

With this function you can delete (remove) all the particles that fall within the bounds of the defined circular area from the physics simulation in the current room. The function takes the x and y position for the center of the area to delete as well as the radius (in pixels) which defines the circular area.


Example:

physics_particle_delete_region_circle(mouse_x, mouse_y, 32);

The above code will delete all particles found in a circular area around the mouse position.


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