diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-06-14 19:05:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-14 19:05:43 +0200 |
commit | aa43b5a3f47c943499d6d586491ef20ec5c81359 (patch) | |
tree | 142911685af3212ba94035f6bbb5d2183c75ed72 /doc/classes | |
parent | 3f613236e093e853381cddbdc8fc83abb0f0c828 (diff) | |
parent | bd40474bd6ee850d3f86d0da290e320bd0264fc3 (diff) |
Merge pull request #48287 from aaronfranke/camera-is-frustum
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/Camera3D.xml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/classes/Camera3D.xml b/doc/classes/Camera3D.xml index 30f6c2b951..016eb05308 100644 --- a/doc/classes/Camera3D.xml +++ b/doc/classes/Camera3D.xml @@ -55,10 +55,19 @@ <argument index="0" name="world_point" type="Vector3"> </argument> <description> - Returns [code]true[/code] if the given position is behind the camera. + Returns [code]true[/code] if the given position is behind the camera (the blue part of the linked diagram). [url=https://raw.githubusercontent.com/godotengine/godot-docs/master/img/camera3d_position_frustum.png]See this diagram[/url] for an overview of position query methods. [b]Note:[/b] A position which returns [code]false[/code] may still be outside the camera's field of view. </description> </method> + <method name="is_position_in_frustum" qualifiers="const"> + <return type="bool"> + </return> + <argument index="0" name="world_point" type="Vector3"> + </argument> + <description> + Returns [code]true[/code] if the given position is inside the camera's frustum (the green part of the linked diagram). [url=https://raw.githubusercontent.com/godotengine/godot-docs/master/img/camera3d_position_frustum.png]See this diagram[/url] for an overview of position query methods. + </description> + </method> <method name="make_current"> <return type="void"> </return> |