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 interactions. It is a public, non-static method that does not take any parameters and does not return a value.
Usage
To use the EnableAllCollision
method, you must have an instance of the PhysicsShape
class. Once you have the instance, you can call this method to enable all collision interactions for that particular shape. This is useful when you want the shape to fully interact with other physics objects in the scene.
Example
// Assuming 'physicsShape' is an instance of PhysicsShape
physicsShape.EnableAllCollision();
// This will enable contact, trace, and touch interactions for the physicsShape instance.