LIGHT_Y_POSITION

LIGHT_Y_POSITION Y

SET THE Y COORDINATE OF THE 3D LIGHT

  • Type: Command
  • Parameter: 1
  • Group: 3D Objects

ACTION

The command LIGHT_Y_POSITION Y set the Y coordinate of the 3D light belonging to the target SCENE3D (first SCENE3D or SCENE3D selected by 3D_TARGET_IS N) and places the 3D light at the position (X,Y,Z), the coordinates X and Z of the 3D light being unchanged.

By default, the 3D light is placed at position (0,0,5) and the target SCENE3D is first created SCENE3D.

SYNTAX: LIGHT_Y_POSITION Y

  • Y = new position in Y. Y can be an integer or a real number.

USE

  • The command LIGHT_Y_POSITION is used to move the 3D light in Y.

ERROR

  • If position Y is not a correct expression
  • If no SCENE3D is created

EXAMPLE

rem create a 3D world

scene3d 1

rem create a 3D object (a teapot)

3d_teapot 1

rem position the 3D light in Y

light_y_position 5.1

SEE ALSO

LIGHT_POSITION

LIGHT_X_POSITION

LIGHT_Z_POSITION