welcome to linkAR technical documentation


Camera Control

The use of the camera is managed through the following functions:

/** 1.- Set Initial camera target position in the scene*/
    float[] targetPosition = new float[] {0.0f,50.0f,0.0f};        
/** 2.- Set Initial camera position in the scene*/
    float[] camPosition = new float[] {100.0f,100.0f,100.0f};        

The function parameter is a float array of three elements, corresponding to the X, Y and Z axis.
The following image will help you to understand the use:

As you can see, the first function sets the camera target. The camera will always point to those coordinates. The second function sets the camera position.