Function height3d
#include <macaw3d.h>int height3d(int terrain, double x, double z, double *height);
Finds how high the ground of a terrain is at a place, so you can keep things standing on it. It counts the terrain's position and size, but not any turning.
Parameters
terrainint- The terrain's number.
xdouble- The place's position across, in world units.
zdouble- The place's position along z.
heightdouble *- Where to put the ground's height: pass the address of a
double, like&h.
Returns int
1 if the place is over the terrain, or 0 if it isn't (and nothing is written).
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, collide3d, hitcount3d, gethit3d, pickable3d.