跳转到内容

FollowTargetData

此内容尚不支持你的语言。

Defined in: camera/FollowTarget.ts:17

damping: number

Defined in: camera/FollowTarget.ts:34

Damping time-constant in seconds (larger = smoother/slower; 0 = snap).


deadzone: number

Defined in: camera/FollowTarget.ts:32

The target may move within this radius (world units) without the camera following.


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: number

Defined in: camera/FollowTarget.ts:21

World-space offset added to the target position.


offsetY: number

Defined in: camera/FollowTarget.ts:22


offsetZ: number

Defined in: camera/FollowTarget.ts:23


target: number

Defined in: camera/FollowTarget.ts:19

Entity to follow (-1 = none).