SETXYZxcor
ycor
zcor
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.
; 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
]
SETPOSXYZ |
SETX |
SETY |
SETZ |