Viewport:lookAt: Difference between revisions
From GiderosMobile
No edit summary |
m Text replacement - "<source" to "<syntaxhighlight" |
||
| Line 5: | Line 5: | ||
=== Description === | === Description === | ||
Sets up the transform matrix of this viewport taking eye and target positions and up direction as arguments. | 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) | Viewport:lookAt(eyex,eyey,eyez,targetx,targety,targetz,upx,upy,upz) | ||
</source> | </source> | ||
Revision as of 13:32, 13 July 2023
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. <syntaxhighlight lang="lua"> Viewport:lookAt(eyex,eyey,eyez,targetx,targety,targetz,upx,upy,upz) </source>
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