Camera::setRot: Difference between revisions

From RAGE Multiplayer Wiki
mNo edit summary
Line 1: Line 1:
Sets the rotation of the camera.<br>Last parameter unknown.<br><br>Last parameter seems to always be set to 2.
Sets the rotation of the camera.<br>Last parameter unknown.<br><br>Last parameter seems to always be set to 2.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">camera.setRot(rotX, rotY, rotZ, p4);</syntaxhighlight>
<syntaxhighlight lang="javascript">camera.setRot(camera, rotX, rotY, rotZ, rotationOrder);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''camera:''' int
*'''rotX:''' float
*'''rotX:''' float
*'''rotY:''' float
*'''rotY:''' float
*'''rotZ:''' float
*'''rotZ:''' float
*'''p4:''' int
*'''rotationOrder:''' int
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">

Revision as of 16:30, 13 November 2021