c_setminmax (ENTITY*)

Sets the collision ellipsiod and bounding box coordinates of the entity to it's real proportions (a bounding box around all it's frames) , and sets both the entities' FAT and NARROW flags.

Parameters:

ENTITY* - entity pointer.

Modifies:

min_xyz, max_xyz, FAT / NARROW

Remarks:

Speed:

Fast

Example:

action myaction() 
{
  vec_scale(my.scale_x,0.5); // scale entity to small size
  c_setminmax(me);   // set my bounding box to my real size
...

See also:

min_x, max_x, c_updatehull, FAT, NARROW, collision

► latest version online