void DisableAllCollision()

book_4_sparkGenerated
code_blocksInput

Description

The DisableAllCollision method is a member of the PhysicsShape class in the Sandbox namespace. This method is used to disable all forms of collision detection for the associated physics shape. When invoked, it will prevent the shape from participating in contact, trace, and touch interactions within the physics simulation.

Usage

To use the DisableAllCollision method, you must have an instance of a PhysicsShape. Once you have the instance, simply call the method to disable all collision interactions for that shape.

Example

// Assuming 'shape' is an instance of PhysicsShape
shape.DisableAllCollision();

// After calling this method, the shape will not participate in any collision detection.