Other commands

  • Email
  • Sharebar
  • Email

Other Commands

Some other commonly used commands are:

Resetting the turtle's position to (0,0,0), and orientation to north = HOME

Erase all objects created in the space = CLEAN

Both HOME and CLEAN = CLEARSCREEN or CS

Shows the result of the parameter in the text area in the Console window = PRINT

For example; PRINT SQRT 100 will show 10 in the text area (SQRT = square root)

Repeats an instruction the desired amount of times = REPEAT (no.) [(directions)]

Where (no.) is the amount of time you want the (directions) repeated. For example; REPEAT 4 [FD 1 RT 90] creates a square-

repeatexample.png

More commands can be found in the VRMATH2 Command Library, which can be accessed through the Console window.