From 1507bea80c2f70de1d2eaf3286e5117515a154ca Mon Sep 17 00:00:00 2001 From: Brett Chalupa Date: Fri, 10 Mar 2023 11:39:28 -0500 Subject: [PATCH] Fix CharacterBody2D get_slide_collision docs The indentation was off and the code usage was incorrect for Godot 4.0 GDScript. (cherry picked from commit 2b6e1550ffbbe8a5f0696f2ffbc657ed36e8faf2) --- doc/classes/CharacterBody2D.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/classes/CharacterBody2D.xml b/doc/classes/CharacterBody2D.xml index 51cc752caed..ce7d1e18d7f 100644 --- a/doc/classes/CharacterBody2D.xml +++ b/doc/classes/CharacterBody2D.xml @@ -67,8 +67,8 @@ [codeblocks] [gdscript] for i in get_slide_collision_count(): - var collision = get_slide_collision(i) - print("Collided with: ", collision.collider.name) + var collision = get_slide_collision(i) + print("Collided with: ", collision.get_collider().name) [/gdscript] [csharp] for (int i = 0; i < GetSlideCollisionCount(); i++)