enable_polycollision

Determines the behavior of the c_... collision instructions.

Range:

0 OBB collision system and physics engine disabled. The collision functions default to USE_AABB. This has the advantage of a little faster level loading and faster collision detection, however the collision hulls are Axis Aligned Bounding Boxes (AABB) rather than rotated ellipsoids. Only A6-style BSP levels and non-cached terrain are supported by the AABB collision system.
0.5 Physics engine enabled, but the collision functions default to USE_AABB.
1 OBB collision system and physics engine enabled (default). For using the old AABB collision system, the collision functions must be called with USE_AABB. Entity collision ellipsoids have two fixed sizes by default, depending on their FAT and NARROW flags.
2 OBB collision and physics engine enabled , and the WED BBox flag enforced. All entities' FAT and NARROW flags are both set by default, thus their collision ellipsoids are set to the real size of their first frame.

Type:

var

Remarks:

Example:

function main()
{
  enable_polycollision = 0;   // OBB collision system and physics engine disabled
  ...

See also:

physics, collision, c_move, c_setminmax ► latest version online