Skip to content

FollowOpts

Defined in: packages/threeplay/src/plugins/camera/types.ts:14

Options of camFollow().

optional lookAt?: boolean

Defined in: packages/threeplay/src/plugins/camera/types.ts:20

Look at the target (default true).


optional offset?: Vec3Like

Defined in: packages/threeplay/src/plugins/camera/types.ts:16

Offset from the target (default (0, 4, 8)).


optional rotateWithTarget?: boolean

Defined in: packages/threeplay/src/plugins/camera/types.ts:22

Rotate the offset with the target’s yaw (rot.y) (default false).


optional smooth?: number

Defined in: packages/threeplay/src/plugins/camera/types.ts:18

0 = instant, closer to 1 = smoother (default 0.1). Frame-rate independent.