Macaw OS C reference

Function forward3d

#include <macaw3d.h>
void forward3d(int e, double *x, double *y, double *z);

Finds out which way a thing is facing in the world, as a direction 1 unit long.

Parameters

eint
The thing's number.
xdouble *
Where to put the direction's x: the address of a double, like &x (or NULL).
ydouble *
Where to put the direction's y (up): the address of a double, like &y.
zdouble *
Where to put the direction's z: the address of a double, like &z.

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