3D_Z_POSITION

3D_Z_POSITION N,Z

SET THE Z COORDINATE OF THE 3D OBJECT NUMBER N

  • Type: Command
  • Parameters: 2
  • Group: 3D Objects

ACTION

The command 3D_Z_POSITION N,Z set the Z coordinate of the 3D object designated by its number N, and places it in position (X,Y,Z), the coordinates X and Y of the 3D object being unchanged.

SYNTAX: 3D_Z_POSITION N,Z

  • N = 3D object number (integer or real). Must be greater than 0 and less than or equal to the allowed maximum number of 3D objects.
  • Z = new position in Z.

USE

  • The command 3D_Z_POSITION is used to move a 3D object in Z.

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of 3D objects.
  • If number N is not greater than 0.
  • If 3D object number N does not exist.
  • If position Z is not a correct expression.

EXAMPLE

rem create a 3D world

scene3d 1

rem resize the 3D world

width 1,300:height 1,300

rem place the camera

cam_position 5,10,10

rem a sphere is created at (0,0,0)

3d_sphere 1,2

rem wait for 1 second

wait 1000

rem move it to (0,0,5)

3d_z_position 1,5

SEE ALSO

3D_X_POSITION

3D_Y_POSITION