User Tools

Site Tools


move_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
Next revisionBoth sides next revision
move_camera_at_speed [2017/04/19 19:46] justinmove_camera_at_speed [2017/04/19 19:55] justin
Line 2: Line 2:
 ---- ----
  
-Moves the camera to the specified (X,Y,Z) [[coordinate]] or named [[camera position]] at a particular speed (in voxels per second). A target to aim the camera towards can optionally be specified. If using a [[camera position]] for the destination, this "look at target" will override the angle.+Moves the camera to the specified (X,Y,Z) [[coordinate]] or named [[camera position]] at a particular speed (measured in voxels per second). A target to aim the camera towards can optionally be specified. If using a [[camera position]] for the destination, this "look at target" will override the angle.
  
 <code python> <code python>
-move_camera_at_speed(coord[000], 120)+move_camera_at_speed(destinationspeedlook_at_target)
 </code> </code>
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|coord[0|Description.|[[String]]|Yes| +|destination|Destination coordinate or camera position.|[[Coordinate]] or [[String]]|Yes| 
-0|Description.|[[String]]|Yes| +|speed|Speed at which the move the camera (voxels/second).|[[Decimal]]|Yes| 
-0]|Description.|[[String]]|Yes+|look_at_target|Coordinate or entity to aim the camera towards.|[[Coordinate]] or [[Entity]]|No
-| 120|Description.|[[String]]|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>
-move_camera_at_speed(coord[000], 120)+move_camera_at_speed(coord[2232], 40, entity["chest01"])
 </code> </code>
 //Results:// //Results://
move_camera_at_speed.txt · Last modified: 2021/04/21 18:36 by justin