Translation of objects in VRML

Translation, like rotation, is frequently required of objects you either design in your world or incorporate into your world. Translation is done in the translation field of the Transform node. The following code performs a translation on an object:

Transform {
	translation 0 5 5
	children ...
The above code tells the Transform node to move all of its children 5 units in the positive Y direction and 5 units in the positive Z direction. Note that you frequently incorporate both translations and rotations in the same Transform node.