User Tools

Site Tools


move_camera_over_time

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_over_time [2017/04/20 09:51] justinmove_camera_over_time [2017/11/28 18:16] justin
Line 2: Line 2:
 ---- ----
  
-Moves the camera to the specified (X,Y,Z) [[coordinate]] or named [[camera position]] over a duration of time (in seconds). 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_positions|camera position]] over a duration of time (in seconds). A target to aim the camera towards can optionally be specified. If using a [[camera_positions|camera position]] for the destination, this "look at target" will override the angle.
  
 <code python> <code python>
Line 19: Line 19:
 ====Example:==== ====Example:====
 <code python> <code python>
-move_camera_over_time(coord[2, 2, 32], 1.5, entity["chest01"])+move_camera_over_time(coord[2, 2, 32], 1, entity["chest01"])
 </code> </code>
-//Results:// The camera is moved to coordinate (2, 2, 32) and rotated to aim towards the entity with an ID of "chest01", all over a duration of 1.5 seconds.+//Results:// The camera is moved to coordinate (2, 2, 32) and rotated to aim towards the entity with an ID of "chest01", all over a duration of one second.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
Line 37: Line 37:
 <WRAP half column> <WRAP half column>
 ====Visual Demo:==== ====Visual Demo:====
-{{:wiki:move_camera_over_time_demo.gif?nolink|}}+{{:wiki:move_camera_at_speed_demo.gif?nolink|}}
 </WRAP> </WRAP>
 </WRAP> </WRAP>
move_camera_over_time.txt · Last modified: 2021/04/21 18:36 by justin