GetCameraPosition: Difference between revisions
Jump to navigation
Jump to search
(→Return) |
|||
Line 15: | Line 15: | ||
==Return== | ==Return== | ||
*'''Procedural''': Returns three [[float|float]]s containing the X, Y and Z coordinates if the function was successful, ''false'' otherwise. | |||
Returns three [[float| | *'''OOP''': Returns a vector with the coordinates if the function was successful, an empty vector otherwise. | ||
Returns a vector with the coordinates if the function was successful, an empty vector otherwise. | |||
==Example== | ==Example== |
Revision as of 19:02, 10 December 2013
This function returns the position the player's camera would have if the camera mode is fixed (see setCameraMode).
Syntax
Procedural
float float float getCameraPosition ( )
OOP
Vector3 Camera.getPosition ( )
Return
- Procedural: Returns three floats containing the X, Y and Z coordinates if the function was successful, false otherwise.
- OOP: Returns a vector with the coordinates if the function was successful, an empty vector otherwise.
Example
This page lacks an example.
See Also
- fadeCamera
- getCameraInterior
- getCameraMatrix
- getCameraTarget
- setCameraInterior
- setCameraMatrix
- setCameraTarget