Method | Description | |
---|---|---|
AdjustPitchAxis ( ) : void | ||
BirdsEyeView ( ) : void | ||
GetInstance ( ) : |
||
GetView ( ) : Matrix | ||
Rotate ( Vector2 rotation ) : void |
Rotates the camera.
|
|
Shift ( Vector2 dV, Vector2 dim ) : void |
Shifts the camera position and camera target in a specific direction.
|
|
Zoom ( int direction ) : bool |
Shifts the camera position closer to the camera target.
|
|
initialize ( |
Initializes the position of the camera.
|
Method | Description | |
---|---|---|
MSCamera ( ) : System |
public Rotate ( Vector2 rotation ) : void | ||
rotation | Vector2 | A Vector2D whose X coordinate represents the direction of the angle of the yaw rotation /// and whose Y coordinate represents the direction of the angle of the pitch rotation |
return | void |
public Shift ( Vector2 dV, Vector2 dim ) : void | ||
dV | Vector2 | A Vector2D whose X coordinate represents the direction of the movements from left to right and /// whose Y coordinate represents the direction of the up and down movement. |
dim | Vector2 | A Vector2D representing the dimension of the map. Used for clamping. |
return | void |
public Zoom ( int direction ) : bool | ||
direction | int | 1 to zoom closer. -1 to zoom further. |
return | bool |
public static initialize ( |
||
viewport | ||
initialLookAt | Vector3 | |
rotation | float | |
return | void |