Difference between revisions of "Viewport:lookAngles"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Sets up the transform matrix of this viewport taking eye position and pitch,yaw,roll angles as arguments.
 
Sets up the transform matrix of this viewport taking eye position and pitch,yaw,roll angles as arguments.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
Viewport:lookAngles(eyex,eyey,eyez,pitch,yaw,roll)
 
Viewport:lookAngles(eyex,eyey,eyez,pitch,yaw,roll)
 
</source>
 
</source>

Revision as of 15:32, 13 July 2023

Available since: Gideros 2016.10
Class: Viewport

Description

Sets up the transform matrix of this viewport taking eye position and pitch,yaw,roll angles as arguments. <syntaxhighlight lang="lua"> Viewport:lookAngles(eyex,eyey,eyez,pitch,yaw,roll) </source>

Parameters

eyex: (number) eye X coordinate
eyey: (number) eye Y coordinate
eyez: (number) eye Z coordinate
pitch: (number) pitch angle in degrees
yaw: (number) yaw angle in degrees
roll: (number) roll angle in degrees