summaryrefslogtreecommitdiff
path: root/doc/classes/CharacterBody2D.xml
diff options
context:
space:
mode:
authorBrett Chalupa <brettchalupa@gmail.com>2023-03-10 11:39:28 -0500
committerYuri Sizov <yuris@humnom.net>2023-03-16 16:39:23 +0100
commit1507bea80c2f70de1d2eaf3286e5117515a154ca (patch)
treedc8889fcb8fe63ba22537bd19c70100925cda9f2 /doc/classes/CharacterBody2D.xml
parent1c7bd972e4f0bc8140cf97f1305e2d32ddc4dfd8 (diff)
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)
Diffstat (limited to 'doc/classes/CharacterBody2D.xml')
-rw-r--r--doc/classes/CharacterBody2D.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/CharacterBody2D.xml b/doc/classes/CharacterBody2D.xml
index 51cc752cae..ce7d1e18d7 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 &lt; GetSlideCollisionCount(); i++)