Camera::setFov
Sets the field of view of the camera.
---------------------------------------------
Min: 1.0f
Max: 130.0f
Syntax
camera.setFov(fieldOfView);
Required Arguments
- fieldOfView: float
Return value
- Undefined
Example
let camera = mp.cameras.new('default', new mp.Vector3(-485, 1095.75, 323.85), new mp.Vector3(0,0,0), 40); // Creates the camera
camera.setActive(true);
camera.setFov(15); // Sets the Field of View of the camera to 15