GetCameraPosition: Difference between revisions
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
float float float getCameraPosition () | float float float getCameraPosition () | ||
</syntaxhighlight> | </syntaxhighlight> | ||
This function returns the X, Y and Z coordinates as three [[float|floats]] if the function was successful, ''false'' otherwise. | This function returns the X, Y and Z coordinates as three [[float|floats]] if the function was successful, ''false'' otherwise. |
Revision as of 19:27, 10 December 2013
This function returns the position that the player's camera would have if the camera mode was fixed (see setCameraMode).
Procedural
float float float getCameraPosition ()
This function returns the X, Y and Z coordinates as three floats if the function was successful, false otherwise.
Example
This page lacks an example.
Object-oriented
Vector3 Camera.getPosition ()
This function 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