PanView
Pan the scene in terms of screen units.
Function
void PanView(x: int, y: int)
Parameters
- x (int): A positive x value means to move the 3d objects right, negative moves the 3d objects left.
- y (int): A positive y value means to move the 3d objects up, negative moves the 3d objects down.
Remarks
The arguments are specified in terms of the scene – PanView(100, 0) will pan the 3D objects to the right – effectively moving the camera to the left. Likewise, PanView(0, 100) will pan the 3D objects up – effectively moving the camera down.
This is an animated pan. If this occurs just after another camera motion, it will either wait for the previous movement’s animation to complete, or modify the pending animation. Remember that the distance that one pixel moves is dependent on the current zoom level.
Example
Pan the screen as if the user had dragged it 100 px to the right and 20 px up.
SYM3.PanView(100, 20);