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 revisionPrevious revision
Next revision
Previous revision
reset_camera_at_speed [2018/03/16 09:47] justinreset_camera_at_speed [2021/04/21 18:42] (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>
 //Results:// //Results://
  
 <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.1521218843.txt.gz · Last modified: 2018/03/16 09:47 by justin