POINT_OBJECT

POINT_OBJECT N

POINTS THE CAMERA TO THE 3D OBJECT NUMBER N

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

ACTION

The command POINT_OBJECT N points the camera to the 3D object number N: the camera turns towards the 3D object number N and its pointing direction is the direction to the 3D object number N.

SYNTAX: POINT_OBJECT N

  • 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.

USE

  • The command POINT_OBJECT is used to point the camera to a 3D object.

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of 3D objects.
  • If number N is less than or equal to 0.
  • If the 3D object number N does not exist.
  • If no SCENE3D is created.

EXAMPLE

rem create a 3D world

scene3d 1

rem create a cube

3d_cube 1,1

rem create a cylinder

3d_cylinder 2,1,0.5,0.5

rem position the cylinder

3d_x_position 2,2

rem point the camera to the cylinder

point_object 1,2

SEE ALSO

CAM_PITCH

CAM_ROLL

CAM_TURN