Difference between revisions of "Viewport:lookAngles"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' in development<br/> | + | '''<translate>Available since</translate>:''' in development<br/> |
− | === Description === | + | === <translate>Description</translate> === |
<translate>Set up the transform matrix of this viewport taking eye position and pitch,yaw,roll angles as arguments</translate> | <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 === | + | === <translate>Parameters</translate> === |
'''eyex''': (number) <translate>eye X coordinate</translate> <br/> | '''eyex''': (number) <translate>eye X coordinate</translate> <br/> | ||
'''eyey''': (number) <translate>eye Y coordinate</translate> <br/> | '''eyey''': (number) <translate>eye Y coordinate</translate> <br/> |
Revision as of 07:27, 24 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