A Box is a BZW map structure that defines a rectilinear parellepiped in the world.
The code for a box object is as follows
box position 10 20 30 rotation 45 size 1 2 3 end
Valid parameters for a box are
- position; defines the center of the box in X and Y and the bottom of the box in Z.
- rotation; defines a rotation around the Z axis for the box, in degrees.
- size; defines the distance from the center to the side of the box in X and Y, and the total height of the box in Z.
The box is one of the original objects supported by BZFlag and has been a mainstay of maps since the very beginning. Boxes are heavily used by the software when generating random maps. In v2.0.0 the box was replaced with the meshbox object to support Materials and Physics Drivers. The original box definition was left unchanged, in order to maintain functional compatibility for older maps.
The box object is supported by all known editors.