User Tools

Site Tools


rotate_camera

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
rotate_camera [2017/05/05 15:55] justinrotate_camera [2017/05/07 16:35] justin
Line 11: Line 11:
 |horizontal_angle|Angle by which to rotate the camera left or right (in degrees).|[[Decimal]]|Yes| |horizontal_angle|Angle by which to rotate the camera left or right (in degrees).|[[Decimal]]|Yes|
 |vertical_angle|Angle by which to rotate the camera up or down (in degrees).|[[Decimal]]|Yes| |vertical_angle|Angle by which to rotate the camera up or down (in degrees).|[[Decimal]]|Yes|
 +
 +<WRAP center round info 100%>
 +[[Lock Camera]] must be called before using this function to prevent the player from manually controlling the camera.
 +</WRAP>
  
 ====Example:==== ====Example:====
 <code python> <code python>
-rotate_camera(0, 0)+rotate_camera(-40, 0)
 </code> </code>
-//Results://+//Results:// The camera is immediately rotated 40 degrees to the left.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Rotate Camera** function to ...+Use the **Rotate Camera** function to focus the camera towards an event taking place during a cutsceneThis is particularly useful in first-person mode since the camera rotations will be relative to the player's view.
 </WRAP> </WRAP>
  
rotate_camera.txt · Last modified: 2021/04/21 18:48 by justin