Description
The EnableAllCollision
method is a member of the PhysicsShape
class in the Sandbox namespace. This method enables all types of collision interactions for the physics shape, including contact, trace, and touch. It is useful when you want to ensure that the shape is fully interactive with other physics objects in the scene.
Usage
To use the EnableAllCollision
method, you need to have an instance of the PhysicsShape
class. Once you have the instance, simply call the method to enable all collision interactions for that shape.
Example
// Assuming 'shape' is an instance of PhysicsShape
shape.EnableAllCollision();
// This will enable contact, trace, and touch interactions for the shape.