|
SAA_cameraPan
Moves a camera and its interest up, down, left, or right.
This function moves the camera position and the camera interest by the same value (dx,dy)
set scene [SAA_AllocScene]
set camera [SAA_AllocElem]
.
.
.
set dx 0.5
set dy -0.5
SAA_cameraPan $scene $camera $dx $dy
camera
- Camera to modify. To get a handle on a camera in a scene, use
SAA_sceneGetCameras().
dx
- The horizontal normalized displacement (can be negative):
| 1.0 |
Viewport width |
| -dx |
Move the camera to the left |
| +dx |
Move the camera to the right |
dy
- The vertical normalized displacement (can be negative):
| 1.0 |
Viewport height |
| -dy |
Move the camera down |
| +dy |
Move the camera up |
|