Difference between revisions of "Viewport:lookAt"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | + | '''Available since:''' in development<br/> | |
− | ''' | + | '''Class:''' [[Viewport]]<br/> |
− | ''' | + | |
− | === | + | === Description === |
− | + | Sets 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''': (number) | + | === Parameters === |
− | '''eyey''': (number) | + | '''eyex''': (number) eye X coordinate<br/> |
− | '''eyez''': (number) | + | '''eyey''': (number) eye Y coordinate<br/> |
− | '''targetx''': (number) | + | '''eyez''': (number) eye Z coordinate<br/> |
− | '''targety''': (number) | + | '''targetx''': (number) target X coordinate<br/> |
− | '''targetz''': (number) | + | '''targety''': (number) target Y coordinate<br/> |
− | '''upx''': (number) | + | '''targetz''': (number) target Z coordinate<br/> |
− | '''upy''': (number) | + | '''upx''': (number) up X coordinate<br/> |
− | '''upz''': (number) | + | '''upy''': (number) up Y coordinate<br/> |
+ | '''upz''': (number) up Z coordinate<br/> | ||
{{Viewport}} | {{Viewport}} |
Revision as of 01:51, 24 December 2020
Available since: in development
Class: Viewport
Description
Sets 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