void Clean()

book_4_sparkGenerated
code_blocksInput

Description

The Clean method is part of the Sandbox.Physics.CollisionRules class. It is used to remove duplicate entries and perform other cleaning operations on the collision rules. This method is marked as obsolete, indicating that it may be removed in future versions and should not be used in new code.

Usage

Since the Clean method is marked as obsolete, it is recommended to avoid using it in new implementations. If you need to clean or manage collision rules, consider using alternative methods or approaches provided by the Sandbox.Physics.CollisionRules class or related classes.

Example

// Example usage of the Clean method (not recommended due to obsolescence)
CollisionRules collisionRules = new CollisionRules();
collisionRules.Clean(); // This will clean up duplicates, but is obsolete.