FollowTargetData
Defined in: camera/FollowTarget.ts:17
Properties
Section titled “Properties”damping
Section titled “damping”damping:
number
Defined in: camera/FollowTarget.ts:34
Damping time-constant in seconds (larger = smoother/slower; 0 = snap).
deadzone
Section titled “deadzone”deadzone:
number
Defined in: camera/FollowTarget.ts:32
The target may move within this radius (world units) without the camera following.
followZ
Section titled “followZ”followZ:
boolean
Defined in: camera/FollowTarget.ts:30
Follow the target’s DEPTH as well. Off for a flat scene, where the camera’s z is how far back it stands and following it would walk it into the content plane. Its own switch rather than “offsetZ ≠ 0”: standing level with the target is a legal 3D offset.
offsetX
Section titled “offsetX”offsetX:
number
Defined in: camera/FollowTarget.ts:21
World-space offset added to the target position.
offsetY
Section titled “offsetY”offsetY:
number
Defined in: camera/FollowTarget.ts:22
offsetZ
Section titled “offsetZ”offsetZ:
number
Defined in: camera/FollowTarget.ts:23
target
Section titled “target”target:
number
Defined in: camera/FollowTarget.ts:19
Entity to follow (-1 = none).