Macaw OS C reference

Function collide3d

#include <macaw3d.h>
void collide3d(int e, int type, double radius);

Gives a thing a collision type, so collisions and updateworld can make it bump into things. When it moves, it's tested as a ball.

Parameters

eint
The thing's number.
typeint
Any number you choose for this kind of thing, such as 1 for the player and 2 for walls.
radiusdouble
The radius of its ball, in world units. 0 or less: the one it had, or 1.

In What every thing can do, with position3d, move3d, translate3d, rotate3d, turn3d, point3d, pointat3d, scale3d, parent3d, pos3d, forward3d, up3d, dist3d, hide3d, show3d, visible3d, texture3d, color3d, fullbright3d, twosided3d, free3d, height3d, hitcount3d, gethit3d, pickable3d.