Skip to content

five-on-it / packages/ai/src/photo / PHOTO

Variable: PHOTO ​

const PHOTO: object

Defined in: packages/ai/src/photo.ts:16

The camera's numbers.

Type Declaration ​

eye ​

readonly eye: 0.6 = 0.6

The camera's height above a character's centre (m): held up to the eyes.

halfAngle ​

readonly halfAngle: 0.4 = 0.4

Half the frame's width, either side of the aim (rad, about 23°).

range ​

readonly range: 60 = 60

How far a photo reaches (m).

slack ​

readonly slack: 0.5 = 0.5

A hit this short of a point still lets it be seen (m): the face the point stands on.