POINT_POSITION

POINT_POSITION X,Y,Z

SET THE POSITION IN (X,Y,Z) OF THE POINT AIMED BY THE 3D CAMERA

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

ACTION

The command POINT_POSITION X,Y,Z set the position of the point aimed by the 3D camera belonging to the target SCENE3D (first SCENE3D or SCENE3D selected by 3D_TARGET_IS N) and places it at the position (X,Y,Z).

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

SYNTAX: POINT_POSITION X,Y,Z

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

USE

  • The command POINT_POSITION is used to move the point aimed by the 3D camera.

ERROR

  • If X or Y or Z 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 point aimed by the 3D camera

point_x_position 0.5,0.5,0.5

SEE ALSO

CAM_POSITION

CAM_X_POSITION

CAM_Y_POSITION

CAM_Z_POSITION

POINT_X_POSITION

POINT_Y_POSITION

POINT_Z_POSITION