From 6a673509106bfe7e9c7978d392d8cde3c1b65dc8 Mon Sep 17 00:00:00 2001 From: "Andrii Doroshenko (Xrayez)" Date: Fri, 12 Nov 2021 21:30:35 +0200 Subject: Remove `get_closest_*` methods from `ShapeCast2D` The physics API cannot provide needed functionality to ensure the correct behavior, which might lead to confusion (see `rest_info()`). However `get_closest_collision_safe/unsafe_fraction()` methods are not removed, because they return correct result from `cast_motion()`. --- doc/classes/ShapeCast2D.xml | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'doc/classes/ShapeCast2D.xml') diff --git a/doc/classes/ShapeCast2D.xml b/doc/classes/ShapeCast2D.xml index e202d058b1..74ebafe069 100644 --- a/doc/classes/ShapeCast2D.xml +++ b/doc/classes/ShapeCast2D.xml @@ -39,31 +39,6 @@ [b]Note:[/b] [code]enabled == true[/code] is not required for this to work. - - - - Returns the first object that the shape intersects, or [code]null[/code] if no object is intersecting the shape (i.e. [method is_colliding] returns [code]false[/code]). - - - - - - Returns the shape ID of the first object that the shape intersects, or [code]0[/code] if no object is intersecting the shape (i.e. [method is_colliding] returns [code]false[/code]). - - - - - - Returns the normal of the closest intersecting object's shape at the collision point. - - - - - - Returns the collision point at which the shape intersects the closest object. - [b]Note:[/b] this point is in the [b]global[/b] coordinate system. - - -- cgit v1.2.3