From e9dfc1166972f96e9785e0d4d66bfb2185bfef75 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sun, 27 Mar 2022 20:31:18 +0200 Subject: [PATCH] Improve documentation for `Camera3D.project_ray_{normal,origin}` This mentions that internally, the inverse camera projection is used to perform projections. (cherry picked from commit fbec10179ad2a058a5f6d2689dba9db813bdc83f) --- doc/classes/Camera.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/classes/Camera.xml b/doc/classes/Camera.xml index 4f8aafe92..fb49e3e40 100644 --- a/doc/classes/Camera.xml +++ b/doc/classes/Camera.xml @@ -75,14 +75,14 @@ - Returns a normal vector in world space, that is the result of projecting a point on the [Viewport] rectangle by the camera projection. This is useful for casting rays in the form of (origin, normal) for object intersection or picking. + Returns a normal vector in world space, that is the result of projecting a point on the [Viewport] rectangle by the inverse camera projection. This is useful for casting rays in the form of (origin, normal) for object intersection or picking. - Returns a 3D position in world space, that is the result of projecting a point on the [Viewport] rectangle by the camera projection. This is useful for casting rays in the form of (origin, normal) for object intersection or picking. + Returns a 3D position in world space, that is the result of projecting a point on the [Viewport] rectangle by the inverse camera projection. This is useful for casting rays in the form of (origin, normal) for object intersection or picking.