Macaw OS C reference

Function levelboxsolid

#include <macawlevel.h>
int levelboxsolid(
    int level,
    double x0,
    double y0,
    double z0,
    double x1,
    double y1,
    double z1
);

Tells you whether a box touches anything solid. The corners can be given in either order.

Parameters

levelint
The level to look in.
x0double
X of one corner of the box.
y0double
Y of that corner.
z0double
Z of that corner.
x1double
X of the opposite corner.
y1double
Y of the opposite corner.
z1double
Z of the opposite corner.

Returns int

1 if the box touches something solid, or 0 if it's in open space.

In Bumping into it, with leveltracebox, leveltrace, levelraycast, levelboxinside.