Skip to content

ThirdPersonOpts

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

Options of thirdPerson().

optional avoidWalls?: boolean

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

Pull the camera in when a wall is between it and the target (default true, needs physics). The target and the children it has when the ray is first cast are ignored by it.


optional distance?: number

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

Distance behind the target (default 6).


optional height?: number

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

Height of the look-at point over the target origin (default 1).


optional lockOnClick?: boolean

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

Lock the pointer on click (default false: dragging orbits instead).


optional maxPitch?: number

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

Highest camera elevation in degrees (default 60).


optional minPitch?: number

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

Lowest camera elevation in degrees (default −20).


optional sensitivity?: number

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

Degrees per pixel of mouse movement (default 0.15).


optional shoulder?: number

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

Over-the-shoulder offset in meters: the camera and its look-at point move this far to the camera’s right (negative: left), so the target sits off-center and the screen center stays free for aiming. Default 0 (centered).