GeometryObject::SetCollisionExclusionMask
Defined in:
Sets the collision exclusion mask.
C4GeometryObjects.h
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. |
World::DetectCollision
and World::QueryCollision
functions.
See Also
GeometryObject::GetCollisionExclusionMask
RigidBodyController::GetCollisionKind
RigidBodyController::SetCollisionKind