C4 Engine
C4 Engine API Documentation

GeometryObject::SetCollisionExclusionMask

Defined in:  C4GeometryObjects.h
Sets the collision exclusion mask.
Prototype

void SetCollisionExclusionMask(uint32 mask);

Parameters
mask The new collision exclusion mask.
Description
The SetCollisionExclusionMask function sets the collision mask. The mask parameter may be a combination (through logical OR) of the following bit flags.
kCollisionRigidBody Any type of rigid body.
kCollisionCharacter A rigid body that represents a character.
kCollisionProjectile A rigid body that represents a projectile.
kCollisionVehicle A rigid body that represents a vehicle.
kCollisionCamera A type of camera.
kCollisionSightPath When used in an exclusion mask, does not obstruct sight.
kCollisionSoundPath When used in an exclusion mask, does not obstruct sound.
kCollisionBaseKind First application-defined collision kind.
kCollisionExcludeAll When used as a collision exclusion mask, this value prevents collisions with everything.
The collision exclusion mask is used to invalidate collisions with rigid bodies having specific collision kinds. The mask is also used to invalidate collisions that are detected by the World::DetectCollision and World::QueryCollision functions.
See Also

GeometryObject::GetCollisionExclusionMask

RigidBodyController::GetCollisionKind

RigidBodyController::SetCollisionKind

RigidBodyController::ValidGeometryCollision

World::DetectCollision

World::QueryCollision