summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-05-28 19:25:37 +0200
committerGitHub <noreply@github.com>2019-05-28 19:25:37 +0200
commit0e441e9a1a5131c2e7f62592a5ad1addc6b72e00 (patch)
treee90790755836e341de28486083b2943a8ab71b8d /doc
parent500fe8960079400140f5459c482d8e116f589172 (diff)
parent6fe957de63b8ecbd51caf2e6c1bf7efc1d53221c (diff)
Merge pull request #29248 from Cheeseness/camera_project_fix
Add a depth parameter to Camera::project_position()
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/Camera.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/classes/Camera.xml b/doc/classes/Camera.xml
index bbe85b81cc..cc869d28a2 100644
--- a/doc/classes/Camera.xml
+++ b/doc/classes/Camera.xml
@@ -76,8 +76,10 @@
</return>
<argument index="0" name="screen_point" type="Vector2">
</argument>
+ <argument index="1" name="z_depth" type="float" default="0">
+ </argument>
<description>
- Returns the 3D point in worldspace that maps to the given 2D coordinate in the [Viewport] rectangle.
+ Returns the 3D point in worldspace that maps to the given 2D coordinate in the [Viewport] rectangle on a plane that is the given distance into the scene away from the camera.
</description>
</method>
<method name="project_ray_normal" qualifiers="const">