Skip to content

FirstPersonOpts

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

Options of firstPerson().

optional height?: number

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

Eye height over the object origin (default 0.7).


optional lockOnClick?: boolean

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

Lock the pointer on click (default true). The mouse only looks around while the pointer is locked; with false it always looks around.


optional maxPitch?: number

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

Pitch limit in degrees (default 85).


optional sensitivity?: number

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

Degrees per pixel of mouse movement (default 0.15).