focalLength(...)
Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.
focalLength(val: number): this;
Sets the focal length of the perspective projection of the node.
Default value: -1
Parameters
Section titled “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
Section titled “Returns”this