Macaw OS C reference

Function gethit3d

#include <macaw3d.h>
int gethit3d(int e, int i, hit3d *hit);

Gets one of the things a thing bumped into during the last updateworld(): the thing, where it touched, and the way the surface there faces.

Parameters

eint
The thing's number.
iint
Which hit, from 0 to hitcount3d(e) - 1.
hithit3d *
Where to put the hit: pass the address of a hit3d, like &hit. Its dist is 0.

Returns int

1 if there was a hit i, or 0 if there wasn't.

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, collide3d, hitcount3d, pickable3d.