Viewport:lookAngles: Difference between revisions
From GiderosMobile
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2016.10<br/> | |||
''' | '''Class:''' [[Viewport]]<br/> | ||
''' | |||
=== | === Description === | ||
Sets 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(eyex,eyey,eyez,pitch,yaw,roll) | |||
</source> | </source> | ||
=== | |||
'''eyex''': (number) | === Parameters === | ||
'''eyey''': (number) | '''eyex''': (number) eye X coordinate<br/> | ||
'''eyez''': (number) | '''eyey''': (number) eye Y coordinate<br/> | ||
'''pitch''': (number) | '''eyez''': (number) eye Z coordinate<br/> | ||
'''yaw''': (number) | '''pitch''': (number) pitch angle in degrees<br/> | ||
'''roll''': (number) | '''yaw''': (number) yaw angle in degrees<br/> | ||
'''roll''': (number) roll angle in degrees<br/> | |||
{{Viewport}} | {{Viewport}} | ||
Revision as of 00:56, 24 December 2020
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