O'Reilly logo

DarkBASIC Pro Game Programming, Second Edition by Joshua R. Smith, Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adjusting the Camera’s Position

It is your job to manage the camera’s position. Although there is a command called AUTOCAM ON, it simply focuses on the last 3D object that was created or loaded and does not follow the correct field of view. To set a camera’s position in 3D space, you can use POSITION CAMERA in the syntax POSITION CAMERA Camera Number, X, Y, Z.

Anytime you need to know the exact position of a camera or you need to move the camera based on its current position (for instance, to move the camera using absolute coordinates), you can use one of the following commands:

  • CAMERA POSITION X(Camera Number)

  • CAMERA POSITION Y(Camera Number)

  • CAMERA POSITION Z(Camera Number)

Pointing the Camera

After positioning, the next most important factor ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required