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
rotate_camera [2017/05/07 16:35] justinrotate_camera [2021/04/21 18:48] (current) justin
Line 4: Line 4:
 Rotates the camera horizontally and/or vertically by the specified number of degrees. The angles are relative to the current view. A positive horizontal angle will rotate the camera to the right and a negative horizontal angle will rotate the camera to the left. Likewise, a positive vertical angle will rotate the camera upwards and a negative vertical angle will rotate the camera downwards. Rotates the camera horizontally and/or vertically by the specified number of degrees. The angles are relative to the current view. A positive horizontal angle will rotate the camera to the right and a negative horizontal angle will rotate the camera to the left. Likewise, a positive vertical angle will rotate the camera upwards and a negative vertical angle will rotate the camera downwards.
  
 +====Signature:====
 <code python> <code python>
 rotate_camera(horizontal_angle, vertical_angle) rotate_camera(horizontal_angle, vertical_angle)
Line 9: Line 10:
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|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).|[[Number]]|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).|[[Number]]|Yes|
  
 <WRAP center round info 100%> <WRAP center round info 100%>
Line 17: Line 18:
  
 ====Example:==== ====Example:====
-<code python+<code bauxite
-rotate_camera(-40, 0)+rotate_camera(-40, 0);
 </code> </code>
 //Results:// The camera is immediately rotated 40 degrees to the left. //Results:// The camera is immediately rotated 40 degrees to the left.
rotate_camera.1494200139.txt.gz · Last modified: 2017/05/07 16:35 by justin