GetCameraPosition: Difference between revisions
Jump to navigation
Jump to search
m (Changed "DeprecatedWithAlt" template to "Deprecated") |
|||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Server client function}} | {{Server client function}} | ||
{{ | {{Deprecated|getCameraMatrix|}} | ||
This function returns the position that the player's camera would have if the camera mode was fixed (see [[setCameraMode]]). | This function returns the position that the player's camera would have if the camera mode was fixed (see [[setCameraMode]]). | ||
Line 16: | Line 15: | ||
This page lacks an example. | This page lacks an example. | ||
{{New items|3.0140|1.4| | |||
==Object-oriented== | ==Object-oriented== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
Vector3 Camera.getPosition () | Vector3 Camera.getPosition () | ||
</syntaxhighlight> | </syntaxhighlight> | ||
This function returns a vector with the coordinates if the function was successful, an empty vector otherwise. | This function returns a vector with the coordinates if the function was successful, an empty vector otherwise. | ||
Line 26: | Line 25: | ||
===Example=== | ===Example=== | ||
This page lacks an example. | This page lacks an example. | ||
}} | |||
==See Also== | ==See Also== | ||
{{Camera functions}} | {{Camera functions}} |
Latest revision as of 16:24, 13 February 2015
This function is deprecated. This means that its use is discouraged and that it might not exist in future versions. | |
Please use getCameraMatrix instead. |
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