c_updatehull(ENTITY* ent, var frame)

Recalculates collision hulls for the given entity to match the vertex positions of a certain frame (starting at 1 for the first frame). Call this function when you need the collision hull of a certain frame, or when you have applyied mesh manipulation functions to a frame.

Parameters:

ent - entity pointer.
frame - number of frame to use for the hull.

Modifies:

min_x/y/z, max_x/y/z, FAT / NARROW

Remarks:

Speed:

slow

Example:

wait(1);	// wait 1 frame after creation
c_updatehull(my,10);

See also:

c_setminmax, min_x, max_x, FAT, NARROW, POLYGON

► latest version online