physics_particle_delete

With this function you can delete (remove) a particle from the physics simulation in the current room. The function takes the unique ID of the particle to delete, as returned by the function physics_particle_create().

 

Syntax:

physics_particle_group_delete(ind)

ArgumentTypeDescription
indPhysics Particle IDThe index (ID) of the particle to delete.

 

Returns:

N/A

 

Example:

physics_particle_delete(part);

The above code will delete the particle with the ID stored in the variable "part" from the simulation.