FollowOpts
Defined in: packages/threeplay/src/plugins/camera/types.ts:14
Options of camFollow().
Properties
Section titled “Properties”lookAt?
Section titled “lookAt?”
optionallookAt?:boolean
Defined in: packages/threeplay/src/plugins/camera/types.ts:20
Look at the target (default true).
offset?
Section titled “offset?”
optionaloffset?:Vec3Like
Defined in: packages/threeplay/src/plugins/camera/types.ts:16
Offset from the target (default (0, 4, 8)).
rotateWithTarget?
Section titled “rotateWithTarget?”
optionalrotateWithTarget?:boolean
Defined in: packages/threeplay/src/plugins/camera/types.ts:22
Rotate the offset with the target’s yaw (rot.y) (default false).
smooth?
Section titled “smooth?”
optionalsmooth?:number
Defined in: packages/threeplay/src/plugins/camera/types.ts:18
0 = instant, closer to 1 = smoother (default 0.1). Frame-rate independent.