focalLength(...)

focalLength(val: number): this;

Sets the focal length of the perspective projection of the node.

Default value: -1

Parameters

Parameter Type Description
val number The value to set the focal length to, or -1 to use that of the device's physical camera. The focal length is expressed as a fraction of half of the width of the device's camera sensor.

Returns

this

zapcode branded_zapcode i