User Tools

Site Tools


reset_camera_at_speed

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
reset_camera_at_speed [2018/03/16 09:47]
justin
reset_camera_at_speed [2020/05/15 09:55] (current)
justin
Line 2: Line 2:
 ---- ----
  
-Resets the camera to the default position/​rotation at the specified speed (in voxels/​second) then returns control of the camera to the player.+Resets the camera to the default position/​rotation at the specified speed (in [[voxel|voxels]]/second) then returns control of the camera to the player.
  
 ====Signature:​==== ====Signature:​====
Line 10: Line 10:
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|speed|Speed at which to reset the camera (in voxels/sec).|[[Decimal]]|Yes|+|speed|Speed at which to reset the camera (in [[voxel|voxels]]/second).|[[Number]]|Yes|
  
 ====Example:​==== ====Example:​====
-<​code ​python>+<​code ​bauxite>
 reset_camera_at_speed(120) reset_camera_at_speed(120)
 </​code>​ </​code>​
Line 19: Line 19:
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Reset Camera At Speed** ​function ​function after showing the player an event that has occurred elsewhere or upon the ending of a cutscene to reset the camera back to the player.+Use the **Reset Camera At Speed** function after showing the player an event that has occurred elsewhere or upon the ending of a cutscene to reset the camera back to the player.
 </​WRAP>​ </​WRAP>​
  
reset_camera_at_speed.txt ยท Last modified: 2020/05/15 09:55 by justin