Skip to main content

Move and turns

In the Programmer mode you can type plain JavaScript in a text window. When you are done click on the arrow icon in the top or on the execute button. An example script is show below. Note that the move and color statements are applied to the sphere and the cylinder.

If you want to apply an operation only to a part of the object you can enclose the functions in a block by using the { and } characters. In this example, the color and move statements are only applied to the sphere.