This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
look_at_target_over_time [2017/04/16 19:44] – justin | look_at_target_over_time [2018/03/16 09:45] – justin | ||
---|---|---|---|
Line 4: | Line 4: | ||
Rotates the camera over a duration of time (in seconds) to point towards the specified entity or coordinate. | Rotates the camera over a duration of time (in seconds) to point towards the specified entity or coordinate. | ||
+ | ====Signature: | ||
<code python> | <code python> | ||
look_at_target_over_time(target, | look_at_target_over_time(target, | ||
Line 11: | Line 12: | ||
|target|Target to aim the camera towards.|[[Entity]] or [[Coordinate]]|Yes| | |target|Target to aim the camera towards.|[[Entity]] or [[Coordinate]]|Yes| | ||
|duration|Duration of the rotation (in seconds).|[[Decimal]]|Yes| | |duration|Duration of the rotation (in seconds).|[[Decimal]]|Yes| | ||
+ | |||
+ | <WRAP center round info 100%> | ||
+ | [[Lock Camera]] must be called before using this function to prevent the player from manually controlling the camera. | ||
+ | </ | ||
====Example: | ====Example: |