diff options
author | Cheeseness <contact@jbushproductions.com> | 2019-05-28 23:14:13 +1000 |
---|---|---|
committer | Cheeseness <contact@jbushproductions.com> | 2019-05-29 02:04:50 +1000 |
commit | 6fe957de63b8ecbd51caf2e6c1bf7efc1d53221c (patch) | |
tree | 0c395e3a29d46fe050ba8cacb26081e3959dad20 /doc/classes/Camera.xml | |
parent | 254286af367e3a9726cd13db11f5fa6de9c92a74 (diff) |
Add a depth parameter to Camera::project_position()
Diffstat (limited to 'doc/classes/Camera.xml')
-rw-r--r-- | doc/classes/Camera.xml | 4 |
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"> |