Macaw OS C reference

Function turn3d

#include <macaw3d.h>
void turn3d(int e, double yaw, double pitch, double roll);

Turns a thing by this much from the way it faces now. Call it every frame to keep something spinning.

Parameters

eint
The thing's number.
yawdouble
How far to turn it round, in degrees. Positive turns right.
pitchdouble
How far to tip it, in degrees. Positive tips its front down.
rolldouble
How far to lean it to one side, in degrees.

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