Difference between revisions of "Viewport:lookAngles"

From GiderosMobile
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' in development<br/>
+
'''Available since:''' Gideros 2016.10<br/>
 +
'''Class:''' [[Viewport]]<br/>
 +
 
 
=== Description ===
 
=== Description ===
Set up the transform matrix of this viewport taking eye position and pitch,yaw,roll angles as arguments
+
Sets up the transform matrix of this viewport taking eye position and pitch,yaw,roll angles as arguments.
<source lang="lua">
+
<syntaxhighlight lang="lua">
Viewport:lookAngles(eyex,eyey,eyez,pitch,yaw,roll)
+
Viewport:lookAngles(eyex,eyey,eyez,pitch,yaw,roll)
</source>
+
</syntaxhighlight>
'''eyex''': (number) eye X coordinate ''''''<br/>
+
 
'''eyey''': (number) eye Y coordinate ''''''<br/>
+
=== Parameters ===
'''eyez''': (number) eye Z coordinate ''''''<br/>
+
'''eyex''': (number) eye X coordinate<br/>
'''pitch''': (number) pitch angle in degrees ''''''<br/>
+
'''eyey''': (number) eye Y coordinate<br/>
'''yaw''': (number) yaw angle in degrees ''''''<br/>
+
'''eyez''': (number) eye Z coordinate<br/>
'''roll''': (number) roll angle in degrees ''''''<br/>
+
'''pitch''': (number) pitch angle in degrees<br/>
 +
'''yaw''': (number) yaw angle in degrees<br/>
 +
'''roll''': (number) roll angle in degrees<br/>
 +
 
 +
{{Viewport}}

Latest revision as of 16:09, 20 February 2024

Available since: Gideros 2016.10
Class: Viewport

Description

Sets up the transform matrix of this viewport taking eye position and pitch,yaw,roll angles as arguments.

Viewport:lookAngles(eyex,eyey,eyez,pitch,yaw,roll)

Parameters

eyex: (number) eye X coordinate
eyey: (number) eye Y coordinate
eyez: (number) eye Z coordinate
pitch: (number) pitch angle in degrees
yaw: (number) yaw angle in degrees
roll: (number) roll angle in degrees