Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Flo |
I have a KinematicBody2D colliding with a StaticBody2D. The KinematicBody2D is to find out the name of the StaticBody2D. It’s simple, but I did not find out. I look forward to any help.
Some more information would be helpful:
Are you using Godot 2.1 or 3.0?
move_and_collide()
or move_and_slide()
?
kidscancode | 2018-02-03 07:52
I use Godot 2.1
I need move_and_collide()
and move_and_slide()
Flo | 2018-02-03 08:00
Well, move_and_collide()
doesn’t exist in 2.1, it’s a 3.0 function. In 2.1 you’d use move()
, so I’ll answer assuming that’s what you’re using.
kidscancode | 2018-02-03 08:07