draw_box3d(VECTOR* vMin,VECTOR* vMax, COLOR* vColor, var alpha)

Draws a 3D bounding box - an axis aligned wire frame box between two corner vertices.

Parameters:

vMin, vMax - Corner vertices of the bounding box, giving the minimum and maximum coordinates of the box.
vColor - BGR color vector of the box.
alpha - Transparency of the box, 0..100.

Speed:

Fast

Remarks:

Example (lite-C):

function draw_bbox(ENTITY* ent)
{
  VECTOR vMin, vMax;
while(1) { vec_set(vMin,ent.x); vec_add(vMin,ent.min_x);
vec_set(vMax,ent.x); vec_add(vMax,ent.max_x);
draw_box3d(vMin,vMax,vector(0,0,255),100);
wait(1);
}
}

See also:

draw_text, draw_point3d, draw_box3d► latest version online