summaryrefslogtreecommitdiff
path: root/doc/classes/CharacterBody2D.xml
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2023-03-16 10:44:56 -0700
committerGitHub <noreply@github.com>2023-03-16 10:44:56 -0700
commit6970257cffc6790f4d7e847e87e5cab9e252874e (patch)
tree670c3d175851bf4d151a41d37121d834db3a7bf9 /doc/classes/CharacterBody2D.xml
parentd23922ffebe48f29126c003411495737d07e5a9f (diff)
parentc0e5879b41f99d690287bc4c696a8a217084e6ed (diff)
Merge pull request #74987 from YuriSizov/4.0-cherrypicks
Cherry-picks for the 4.0 branch (future 4.0.1) - 4th batch
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++)