You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,9 @@ This controls if the camera should follow the target along the horizontal axis o
55
55
#### follow_vertical (boolean)
56
56
This controls if the camera should follow the target along the vertical axis or not. See `camera.follow()` for details.
57
57
58
+
### follow_immediately (boolean)
59
+
This controls if the camera should immediately position itself on the follow target when initialized or if it should apply lerp (see below). See `camera.follow()` for details.
60
+
58
61
#### follow_target (hash)
59
62
Id of the game object to follow. See `camera.follow()` for details.
60
63
@@ -235,7 +238,8 @@ Acceptable values for the `options` table:
235
238
*`lerp` (number) - Lerp from current position to target position with `lerp` as t.
236
239
*`offset` (vector3) - Camera offset from target position.
237
240
*`horizontal` (boolean) - True if following the target along the horizontal axis.
238
-
*`vertical` (vector3) - True if following the target along the vertical axis.
241
+
*`vertical` (boolean) - True if following the target along the vertical axis.
242
+
*`immediate` (boolean) - True if the camera should be immediately positioned on the target even when lerping.
239
243
240
244
### camera.unfollow(camera_id)
241
245
Stop following a game object.
@@ -400,9 +404,9 @@ Message equivalent to `camera.recoil()`. Accepted message keys: `offset` and `du
400
404
Message sent back to the sender of a `shake` message when the shake has completed.
401
405
402
406
### follow
403
-
Message equivalent to `camera.follow()`. Accepted message keys: `target`, `lerp`, `horizontal` and `vertical`.
0 commit comments