ThirdPersonOpts
Defined in: packages/threeplay/src/plugins/camera/types.ts:49
Options of thirdPerson().
Properties
Section titled “Properties”avoidWalls?
Section titled “avoidWalls?”
optionalavoidWalls?: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.
distance?
Section titled “distance?”
optionaldistance?:number
Defined in: packages/threeplay/src/plugins/camera/types.ts:51
Distance behind the target (default 6).
height?
Section titled “height?”
optionalheight?:number
Defined in: packages/threeplay/src/plugins/camera/types.ts:53
Height of the look-at point over the target origin (default 1).
lockOnClick?
Section titled “lockOnClick?”
optionallockOnClick?:boolean
Defined in: packages/threeplay/src/plugins/camera/types.ts:65
Lock the pointer on click (default false: dragging orbits instead).
maxPitch?
Section titled “maxPitch?”
optionalmaxPitch?:number
Defined in: packages/threeplay/src/plugins/camera/types.ts:69
Highest camera elevation in degrees (default 60).
minPitch?
Section titled “minPitch?”
optionalminPitch?:number
Defined in: packages/threeplay/src/plugins/camera/types.ts:67
Lowest camera elevation in degrees (default −20).
sensitivity?
Section titled “sensitivity?”
optionalsensitivity?:number
Defined in: packages/threeplay/src/plugins/camera/types.ts:61
Degrees per pixel of mouse movement (default 0.15).
shoulder?
Section titled “shoulder?”
optionalshoulder?: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).