From b3018d81c5890f1fa0140e535769283d6265f189 Mon Sep 17 00:00:00 2001 From: CardboardCarl <31835840+CardboardCarl@users.noreply.github.com> Date: Sun, 21 Jan 2024 01:16:42 -0500 Subject: [PATCH] Clarified behavior of RayCast objects when get_collision_point() is used inside a collision shape (cherry picked from commit 6dfec4f70dfe77560de046fe99d6514e7831755a) --- doc/classes/RayCast2D.xml | 2 +- doc/classes/RayCast3D.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/classes/RayCast2D.xml b/doc/classes/RayCast2D.xml index bcf1e364e97..872b73da8e8 100644 --- a/doc/classes/RayCast2D.xml +++ b/doc/classes/RayCast2D.xml @@ -74,7 +74,7 @@ - Returns the collision point at which the ray intersects the closest object. + Returns the collision point at which the ray intersects the closest object. If [member hit_from_inside] is [code]true[/code] and the ray starts inside of a collision shape, this function will return the origin point of the ray. [b]Note:[/b] This point is in the [b]global[/b] coordinate system. diff --git a/doc/classes/RayCast3D.xml b/doc/classes/RayCast3D.xml index fa2badb1db3..231fdf590ef 100644 --- a/doc/classes/RayCast3D.xml +++ b/doc/classes/RayCast3D.xml @@ -75,7 +75,7 @@ - Returns the collision point at which the ray intersects the closest object. + Returns the collision point at which the ray intersects the closest object. If [member hit_from_inside] is [code]true[/code] and the ray starts inside of a collision shape, this function will return the origin point of the ray. [b]Note:[/b] This point is in the [b]global[/b] coordinate system.