CAM_X_POSITION

CAM_X_POSITION X

SET THE X COORDINATE OF THE 3D CAMERA

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

ACTION

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

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

SYNTAX: CAM_X_POSITION X

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

USE

  • The command CAM_X_POSITION is used to move the 3D camera in X.

ERROR

  • If position X 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 camera in X

cam_x_position 3.1

SEE ALSO

CAM_POSITION

CAM_Y_POSITION

CAM_Z_POSITION

POINT_POSITION

POINT_X_POSITION

POINT_Y_POSITION

POINT_Z_POSITION