Difference between revisions of "Viewport:lookAt"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' in development<br/> === Description === Set up the transform matrix of this viewport taking eye and target positions and up direction as argum...") |
|||
Line 4: | Line 4: | ||
Set up the transform matrix of this viewport taking eye and target positions and up direction as arguments. | Set up the transform matrix of this viewport taking eye and target positions and up direction as arguments. | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | Viewport:lookAt(eyex,eyey,eyez,targetx,targety,targetz,upx,upy,upz) | |
</source> | </source> | ||
− | '''eyex | + | '''eyex''': (number) eye X coordinate ''''''<br/> |
− | '''eyey | + | '''eyey''': (number) eye Y coordinate ''''''<br/> |
− | '''eyez | + | '''eyez''': (number) eye Z coordinate ''''''<br/> |
− | '''targetx | + | '''targetx''': (number) target X coordinate ''''''<br/> |
− | '''targety | + | '''targety''': (number) target Y coordinate ''''''<br/> |
− | '''targetz | + | '''targetz''': (number) target Z coordinate ''''''<br/> |
− | '''upx | + | '''upx''': (number) up X coordinate ''''''<br/> |
− | '''upy | + | '''upy''': (number) up Y coordinate ''''''<br/> |
− | '''upz | + | '''upz''': (number) up Z coordinate ''''''<br/> |
Revision as of 10:20, 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)
'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 '