World of Hello
|
the 3D camera. More...
#include <camera.h>
Static Public Member Functions | |
static camera | lookAt (mesh *m) |
face camera toward a 3D mesh. More... | |
static camera | rotateAround (mesh *m, float dist=1, float offsetX=0, float offsetY=0, float offsetZ=0) |
rotate the camera around a 3D mesh. More... | |
static camera | setRotateAroundChange (float x, float y=0) |
manually rotate the camera around a 3D mesh. More... | |
static multiReturn< float, float > | getRotateAroundDirection () |
get the X and Y axis of rotateAround(). More... | |
static camera | setRotateAroundDirection (float x, float y) |
set the X and Y axis of rotateAround(). More... | |
static camera | setDefaultControls (bool movable) |
makes the 3D camera movable. More... | |
static multiReturn< float, float, float > | getPosition (bool absolute=true) |
get the position of the 3D camera. More... | |
static camera | setPosition (float x, float y, float z) |
set the position of the 3D camera. More... | |
static multiReturn< float, float, float > | getRotation () |
get the rotation of the 3D camera. More... | |
static camera | setRotation (float x, float y, float z) |
set the rotation of the 3D camera. More... | |
the 3D camera.
Control the 3D camera and set movement options as well as rotational options.
|
static |
get the position of the 3D camera.
Get the X, Y, and Z axis of the 3D camera.\n The absolute position is where the camera really is being displayed from, otherwise it is where the camera was set to display from.
(optional) | Whether or not you should get the real display position of the camera. |
|
static |
get the X and Y axis of rotateAround().
When the camera is rotating around (using the rotateAround() function) a mesh, use this function to get the X and Y axis of the camera.
|
static |
get the rotation of the 3D camera.
Get the X, Y, and Z rotational axis of the 3D camera.
face camera toward a 3D mesh.
The | 3D mesh the camera should look at. |
|
static |
rotate the camera around a 3D mesh.
Mouse click anywhere on the screen (except on 2D elements) and drag the mouse to rotate around. Also rotates around objects on mobile devices and handles multi-touch events.
The | 3D mesh the camera should rotate around. |
(optional) | The distance to rotate from. |
(optional) | The amount to offset the camera's rotation X axis. |
(optional) | The amount to offset the camera's rotation Y axis. |
(optional) | The amount to offset the camera's rotation Z axis. |
|
static |
makes the 3D camera movable.
Cannot be used while rotating around (using the rotateAround() function) a mesh. Enables the camera to be controlled with the arrow keys (no mobile support).
Whether | or not the camera should be movable. |
|
static |
set the position of the 3D camera.
Set the X, Y, and Z axis of the 3D camera.
The | new X axis of the camera. |
The | new Y axis of the camera. |
the | new Z axis of the camera. |
|
static |
manually rotate the camera around a 3D mesh.
When the camera is rotating around (using the rotateAround() function) a mesh, use this function to rotate across the X or Y axis. May be used in situations like left-arrow presses or mobile joysticks.
The | amount the camera should rotate around the mesh's X axis. |
(optional) | The amount the camera should rotate around the mesh's Y axis. |
|
static |
set the X and Y axis of rotateAround().
When the camera is rotating around (using the rotateAround() function) a mesh, use this function to set the X and Y axis which the camera is rotating around the mesh.
The | X axis of the camera rotation around the mesh. |
The | Y axis of the camera rotation around the mesh. |
|
static |
set the rotation of the 3D camera.
Set the X, Y, and Z rotational axis of the 3D camera.
The | new X rotational axis of the camera. |
The | new Y rotational axis of the camera. |
the | new Z rotational axis of the camera. |