This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
move_camera_at_speed [2017/04/19 19:55] – justin | move_camera_at_speed [2018/03/16 09:46] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | 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, | + | Moves the camera to the specified (X,Y,Z) [[coordinate]] or named [[camera_positions|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_positions|camera position]] for the destination, |
+ | ====Signature: | ||
<code python> | <code python> | ||
move_camera_at_speed(destination, | move_camera_at_speed(destination, | ||
Line 10: | Line 11: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
|destination|Destination coordinate or camera position.|[[Coordinate]] or [[String]]|Yes| | |destination|Destination coordinate or camera position.|[[Coordinate]] or [[String]]|Yes| | ||
- | |speed|Speed at which the move the camera (voxels/second).|[[Decimal]]|Yes| | + | |speed|Speed at which to move the camera (in voxels/sec).|[[Decimal]]|Yes| |
|look_at_target|Coordinate or entity to aim the camera towards.|[[Coordinate]] or [[Entity]]|No| | |look_at_target|Coordinate or entity to aim the camera towards.|[[Coordinate]] or [[Entity]]|No| | ||
Line 19: | Line 20: | ||
====Example: | ====Example: | ||
<code python> | <code python> | ||
- | move_camera_at_speed(coord[2, | + | move_camera_at_speed(coord[2, |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Move Camera At Speed** function to ... | + | Use the **Move Camera At Speed** function to focus on certain characters/ |
</ | </ | ||