Difference between revisions of "Viewport:lookAt"

From GiderosMobile
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2016.10<br/>
'''<translate>Available since</translate>:''' in development<br/>
+
'''Class:''' [[Viewport]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Viewport|Viewport]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Set up the transform matrix of this viewport taking eye and target positions and up direction as arguments.</translate>
+
Sets up the transform matrix of this viewport taking eye and target positions and up direction as arguments.
<source lang="lua">
+
<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>
+
</syntaxhighlight>
=== <translate>Parameters</translate> ===
+
 
'''eyex''': (number) <translate>eye X coordinate</translate> <br/>
+
=== Parameters ===
'''eyey''': (number) <translate>eye Y coordinate</translate> <br/>
+
'''eyex''': (number) eye X coordinate<br/>
'''eyez''': (number) <translate>eye Z coordinate</translate> <br/>
+
'''eyey''': (number) eye Y coordinate<br/>
'''targetx''': (number) <translate>target X coordinate</translate> <br/>
+
'''eyez''': (number) eye Z coordinate<br/>
'''targety''': (number) <translate>target Y coordinate</translate> <br/>
+
'''targetx''': (number) target X coordinate<br/>
'''targetz''': (number) <translate>target Z coordinate</translate> <br/>
+
'''targety''': (number) target Y coordinate<br/>
'''upx''': (number) <translate>up X coordinate</translate> <br/>
+
'''targetz''': (number) target Z coordinate<br/>
'''upy''': (number) <translate>up Y coordinate</translate> <br/>
+
'''upx''': (number) up X coordinate<br/>
'''upz''': (number) <translate>up Z coordinate</translate> <br/>
+
'''upy''': (number) up Y coordinate<br/>
 +
'''upz''': (number) up Z coordinate<br/>
  
 
{{Viewport}}
 
{{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