Difference between revisions of "Viewport:lookAt"
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 and target positions and up direction as arguments. | + | <translate>Set up the transform matrix of this viewport taking eye and target positions and up direction as arguments.</translate> |
<source lang="lua"> | <source lang="lua"> | ||
Viewport:lookAt(eyex,eyey,eyez,targetx,targety,targetz,upx,upy,upz) | Viewport:lookAt(eyex,eyey,eyez,targetx,targety,targetz,upx,upy,upz) | ||
</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/> |
− | '''targetx''': (number) target X coordinate <br/> | + | '''targetx''': (number) <translate>target X coordinate</translate> <br/> |
− | '''targety''': (number) target Y coordinate <br/> | + | '''targety''': (number) <translate>target Y coordinate</translate> <br/> |
− | '''targetz''': (number) target Z coordinate <br/> | + | '''targetz''': (number) <translate>target Z coordinate</translate> <br/> |
− | '''upx''': (number) up X coordinate <br/> | + | '''upx''': (number) <translate>up X coordinate</translate> <br/> |
− | '''upy''': (number) up Y coordinate <br/> | + | '''upy''': (number) <translate>up Y coordinate</translate> <br/> |
− | '''upz''': (number) up Z coordinate <br/> | + | '''upz''': (number) <translate>up Z coordinate</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 and target positions and up direction as arguments.
Viewport:lookAt(eyex,eyey,eyez,targetx,targety,targetz,upx,upy,upz)
Parameters
eyex: (number) eye X coordinate
eyey: (number) eye Y coordinate
eyez: (number) eye Z coordinate
targetx: (number) target X coordinate
targety: (number) target Y coordinate
targetz: (number) target Z coordinate
upx: (number) up X coordinate
upy: (number) up Y coordinate
upz: (number) up Z coordinate