summaryrefslogtreecommitdiff
path: root/doc/classes/Camera.xml
diff options
context:
space:
mode:
authorCheeseness <contact@jbushproductions.com>2019-05-28 23:14:13 +1000
committerCheeseness <contact@jbushproductions.com>2019-05-29 02:04:50 +1000
commit6fe957de63b8ecbd51caf2e6c1bf7efc1d53221c (patch)
tree0c395e3a29d46fe050ba8cacb26081e3959dad20 /doc/classes/Camera.xml
parent254286af367e3a9726cd13db11f5fa6de9c92a74 (diff)
Add a depth parameter to Camera::project_position()
Diffstat (limited to 'doc/classes/Camera.xml')
-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 0b7021b4a1..557d978b10 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">