3D_Y_POSITION

3D_Y_POSITION N,Y

SET THE Y COORDINATE OF THE 3D OBJECT NUMBER N

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

ACTION

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

SYNTAX: 3D_Y_POSITION N,Y

  • 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.
  • Y = new position in Y.

USE

  • The command 3D_Y_POSITION is used to move a 3D object in Y.

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of 3D objects.
  • If the coefficient CX is less than or equal to 0.
  • If 3D object number N does not exist.
  • If position Y 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,5,0)

3d_y_position 1,5

SEE ALSO

3D_X_POSITION

3D_Z_POSITION