C4 Engine
C4 Engine API Documentation

RigidBodyController::ValidGeometryCollision

Defined in:  C4Physics.h
Returns a boolean value indicating whether a collision with a geometry node would be valid.
Prototype

virtual bool ValidGeometryCollision(const Geometry *geometry) const;

Parameters
geometry A pointer to a geometry node with which a collision might occur.
Description
The ValidGeometryCollision function returns a boolean value indicating whether a collision between the rigid body for which it is called and the geometry node specified by the geometry parameter should be considered valid. This function can be overridden in a subclass of RigidBodyController to implement arbitrary collision masking. The default implementation in the base class checks whether the collision kind of the rigid body for which ValidRigidBodyCollision is called is excluded by the collision exclusion mask for the geometry object attached to the node specified by the geometry parameter. The function returns true if a collision with the geometry node is allowed, and it returns false if such a collision should never occur.
See Also

RigidBodyController::ValidRigidBodyCollision

RigidBodyController::GetCollisionKind

RigidBodyController::SetCollisionKind

RigidBodyController::GetCollisionExclusionMask

RigidBodyController::SetCollisionExclusionMask

GeometryObject::GetCollisionExclusionMask

GeometryObject::SetCollisionExclusionMask