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(eyex,eyey,eyez,pitch,yaw,roll) | |
</source> | </source> | ||
− | '''eyex | + | '''eyex''': (number) eye X coordinate ''''''<br/> |
− | '''eyey | + | '''eyey''': (number) eye Y coordinate ''''''<br/> |
− | '''eyez | + | '''eyez''': (number) eye Z coordinate ''''''<br/> |
− | '''pitch | + | '''pitch''': (number) pitch angle in degrees ''''''<br/> |
− | '''yaw | + | '''yaw''': (number) yaw angle in degrees ''''''<br/> |
− | '''roll | + | '''roll''': (number) roll angle in degrees ''''''<br/> |
Revision as of 10: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 '