> 4D Blocks
> Version 6
> Scene Language
Kinds of Blocks
More Geometry Commands
Elevated Train Commands
x y z w
Don't use "w" in 3D, of course. See below for info about how the axes are oriented.
x+ y+ z+ w+
A direction is an axis plus a sign. When you first load a new file, the x axis points to the right and the y axis points upward.
In 3D, the coordinate system is left-handed, so the z axis points away from you.
In 4D, the overall coordinate system is probably also left-handed, but the z axis points in the "out" direction and looks right-handed. The w axis points away from you.
X+ Y+ Z+ W+
If you make the letters uppercase, then instead of symbolic direction codes you get unit vectors. You can already enter vectors as arrays, so these are just shorthand, mainly for use with the "place" command. For example, "W-" is short for "[0 0 0 -1]". The vectors are all four-dimensional, but they still work with the three-dimensional "place" command.
The following colors are predefined. Other colors can be entered with the HTML syntax #RRGGBB.
red cyan orange gray
The Null Constant
The command "null" puts a null on the stack. The alias "?" is also defined for backward compatibility.