Class to control the camera during conversations. More...
High Level Methods | |
| void | SetFOV (float angle) |
| Set the field of view (FOV) of the camera to the specified angle. | |
| void | SetClippingRect (Rect r) |
| Set the size of the camera viewport. | |
| void | SetPosition (Vector v) |
| Set the position of the camera to the specified point. | |
| void | SetFarClipPlane (float dist) |
| Set the far clip plane distance to the specified value. | |
| void | EnableFarClipPlane () |
| Enable the far clip plane. | |
| void | DisableFarClipPlane () |
| Disable the far clip plane. | |
| void | Move (Vector v, float time=0.0) |
| Move the camera along the given vector. | |
| void | MoveForward (float distance, float time=0.0) |
| Move the camera along its forward vector. | |
| void | MoveBackward (float distance, float time=0.0) |
| Move the camera along its backward vector. | |
| void | MoveLeft (float distance, float time=0.0) |
| Move the camera along its left vector. | |
| void | MoveRight (float distance, float time=0.0) |
| Move the camera along its right vector. | |
| void | MoveUp (float distance, float time=0.0) |
| Move the camera along its up vector. | |
| void | MoveDown (float distance, float time=0.0) |
| Move the camera along its down vector. | |
| void | LookAt (Vector v) |
| Rotate the camera to face the given point. | |
Low Level Methods | |
| float | GetFOV () |
| Returns the field of view in radians. | |
| Rect | GetClippingRect () |
| Returns the size of the camera viewport. | |
| Vector | GetPosition () |
| Returns the position of the camera. | |
| float | GetFarClipPlane () |
| Returns the far clip plane distance. | |
Class to control the camera during conversations.
| void Camera::SetFOV | ( | float | angle | ) |
Set the field of view (FOV) of the camera to the specified angle.
| angle | Field of view in radians. |
| void Camera::Move | ( | Vector | v, |
| float | time = 0.0 |
||
| ) |
Move the camera along the given vector.
| v | Vector specifying the direction and distance to move. |
| time | float value specifying the time the movement will take. |
| void Camera::MoveForward | ( | float | distance, |
| float | time = 0.0 |
||
| ) |
Move the camera along its forward vector.
| distance | float value specifying the distance to move (in texels). |
| time | float value specifying the time the movement will take. |
| void Camera::MoveBackward | ( | float | distance, |
| float | time = 0.0 |
||
| ) |
Move the camera along its backward vector.
| distance | float value specifying the distance to move (in texels). |
| time | float value specifying the time the movement will take. |
| void Camera::MoveLeft | ( | float | distance, |
| float | time = 0.0 |
||
| ) |
Move the camera along its left vector.
| distance | float value specifying the distance to move (in texels). |
| time | float value specifying the time the movement will take. |
| void Camera::MoveRight | ( | float | distance, |
| float | time = 0.0 |
||
| ) |
Move the camera along its right vector.
| distance | float value specifying the distance to move (in texels). |
| time | float value specifying the time the movement will take. |
| void Camera::MoveUp | ( | float | distance, |
| float | time = 0.0 |
||
| ) |
Move the camera along its up vector.
| distance | float value specifying the distance to move (in texels). |
| time | float value specifying the time the movement will take. |
| void Camera::MoveDown | ( | float | distance, |
| float | time = 0.0 |
||
| ) |
Move the camera along its down vector.
| distance | float value specifying the distance to move (in texels). |
| time | float value specifying the time the movement will take. |
1.8.1.1