Difference between revisions of "Viewport:lookAt"

From GiderosMobile
Line 18: Line 18:
 
'''upy''': (number) <translate>up Y coordinate</translate> <br/>
 
'''upy''': (number) <translate>up Y coordinate</translate> <br/>
 
'''upz''': (number) <translate>up Z coordinate</translate> <br/>
 
'''upz''': (number) <translate>up Z coordinate</translate> <br/>
 +
 +
{{Viewport}}

Revision as of 02:55, 4 December 2019


Available since: in development
Class: Viewport

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)

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