SETXYZ

Synopsis
SETXYZ xcor ycor zcor
Description

Moves the turtle to an absolute 3D position. The three inputs are numbers, the X, Y, and Z coordinates to move to.

SETXYZ is designed to run in PERSPECTIVE mode. In 2D modes, SETXYZ ignores the zcor input and moves the turtle to the given X and Y coordinates.

Example
; draw some sine waves in 3D
PERSPECTIVE
FOR [i 0 360 10] [
   FOR [j 0 360] [SETXYZ :j :i*SIN :j -:i]
   PENUP
   SETXYZ 0 0 -:i
   PENDOWN
]
See Also
SETPOSXYZ
SETX
SETY
SETZ

SourceForge.net Logo