Macaw OS C reference

Module Bumping into it

#include <macawlevel.h>

These work on a built level. Water isn't solid, so they go straight through it.

Functions

leveltracebox
Moves a box from one place towards another and tells you how far it gets before it hits something.
leveltrace
Follows a line from one point to another and tells you how far it gets before it hits something.
levelraycast
Sends a ray from a point in a direction and finds where it first goes into a brush.
levelboxsolid
Tells you whether a box touches anything solid.
levelboxinside
Tells you whether a box is inside a brush, by more than just touching it.