The Remove
method is used to delete the current PhysicsGroup
instance along with all the physics bodies associated with it. This operation is irreversible and will remove all the bodies from the physics simulation.
The Remove
method is used to delete the current PhysicsGroup
instance along with all the physics bodies associated with it. This operation is irreversible and will remove all the bodies from the physics simulation.
To use the Remove
method, simply call it on an instance of PhysicsGroup
. Ensure that you no longer need the group or its bodies, as this action cannot be undone.
// Example of using the Remove method PhysicsGroup myPhysicsGroup = new PhysicsGroup(); // Perform operations with the physics group // ... // When done, remove the group and its bodies myPhysicsGroup.Remove();