void DisableAllCollision()

robot_2Generated
code_blocksInput

Description

The DisableAllCollision method is used to disable all forms of collision for a PhysicsShape object. This includes disabling contact, trace, and touch interactions. Once this method is called, the shape will no longer interact with other physics objects in the scene.

Usage

To use the DisableAllCollision method, simply call it on an instance of a PhysicsShape object. This will effectively make the shape non-interactive in terms of physics collisions.

Example

// Example of disabling all collisions for a PhysicsShape
PhysicsShape myShape = new PhysicsShape();
myShape.DisableAllCollision();

// After calling DisableAllCollision, myShape will not interact with other physics objects.