Difference between revisions of "Viewport:lookAngles"

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

Revision as of 11:19, 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)

'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 '