Click or drag to resize

CameraSetPerspective Method

Sets the camera projection to perspective mode (see ), by specifying a fov (field of view) angle in degrees, and the z_near and z_far clip planes in world-space units.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void SetPerspective(
	float fov,
	float zNear,
	float zFar
)

Parameters

fov
Type: SystemSingle

[Missing <param name="fov"/> documentation for "M:Godot.Camera.SetPerspective(System.Single,System.Single,System.Single)"]

zNear
Type: SystemSingle

[Missing <param name="zNear"/> documentation for "M:Godot.Camera.SetPerspective(System.Single,System.Single,System.Single)"]

zFar
Type: SystemSingle

[Missing <param name="zFar"/> documentation for "M:Godot.Camera.SetPerspective(System.Single,System.Single,System.Single)"]

See Also