C4 Engine
C4 Engine API Documentation

GeometryObject::SetCollisionLevel

Defined in:  C4GeometryObjects.h
Sets the index of the detail level used for collision detection.
Prototype

void SetCollisionLevel(int32 level) const;

Parameters
level The detail level index.
Description
The SetCollisionLevel function sets the index of the detail level used for collision detection. The level parameter should be in the range [0, n − 1], where n is the number of detail levels. If the level parameter is greater than or equal to n, then the collision level is set to n − 1.
See Also

GeometryObject::GetCollisionLevel

GeometryObject::GetCollisionExclusionMask

GeometryObject::SetCollisionExclusionMask

World::DetectCollision

World::QueryCollision