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...") |
|||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' | + | '''Available since:''' Gideros 2016.10<br/> |
+ | '''Class:''' [[Viewport]]<br/> | ||
+ | |||
=== Description === | === Description === | ||
− | + | Sets up the transform matrix of this viewport taking eye and target positions and up direction as arguments. | |
− | < | + | <syntaxhighlight lang="lua"> |
− | + | Viewport:lookAt(eyex,eyey,eyez,targetx,targety,targetz,upx,upy,upz) | |
− | </ | + | </syntaxhighlight> |
− | '''eyex | + | |
− | '''eyey | + | === Parameters === |
− | '''eyez | + | '''eyex''': (number) eye X coordinate<br/> |
− | '''targetx | + | '''eyey''': (number) eye Y coordinate<br/> |
− | '''targety | + | '''eyez''': (number) eye Z coordinate<br/> |
− | '''targetz | + | '''targetx''': (number) target X coordinate<br/> |
− | '''upx | + | '''targety''': (number) target Y coordinate<br/> |
− | '''upy | + | '''targetz''': (number) target Z coordinate<br/> |
− | '''upz | + | '''upx''': (number) up X coordinate<br/> |
+ | '''upy''': (number) up Y coordinate<br/> | ||
+ | '''upz''': (number) up Z coordinate<br/> | ||
+ | |||
+ | {{Viewport}} |
Latest revision as of 16:10, 20 February 2024
Available since: Gideros 2016.10
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