Difference between revisions of "Viewport:lookAngles"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' in development<br/>
 
'''Available since:''' in development<br/>
 
=== Description ===
 
=== Description ===
Set up the transform matrix of this viewport taking eye position and pitch,yaw,roll angles as arguments
+
<translate>Set up the transform matrix of this viewport taking eye position and pitch,yaw,roll angles as arguments</translate>
 
<source lang="lua">
 
<source lang="lua">
 
  Viewport:lookAngles(eyex,eyey,eyez,pitch,yaw,roll)
 
  Viewport:lookAngles(eyex,eyey,eyez,pitch,yaw,roll)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''eyex''': (number) eye X coordinate <br/>
+
'''eyex''': (number) <translate>eye X coordinate</translate> <br/>
'''eyey''': (number) eye Y coordinate <br/>
+
'''eyey''': (number) <translate>eye Y coordinate</translate> <br/>
'''eyez''': (number) eye Z coordinate <br/>
+
'''eyez''': (number) <translate>eye Z coordinate</translate> <br/>
'''pitch''': (number) pitch angle in degrees <br/>
+
'''pitch''': (number) <translate>pitch angle in degrees</translate> <br/>
'''yaw''': (number) yaw angle in degrees <br/>
+
'''yaw''': (number) <translate>yaw angle in degrees</translate> <br/>
'''roll''': (number) roll angle in degrees <br/>
+
'''roll''': (number) <translate>roll angle in degrees</translate> <br/>

Revision as of 13:33, 23 August 2018

Available since: in development

Description

Set 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