Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | elahehab |
I have multiple KinematicBody2Ds moving in the game screen randomly. I want these bodies to overlap and move and then stop slowly. But I dont want them to overlap when they stopped. So I want to check if they have any overlap they continue moving. The problem is I cant find any way to check overlap or find overlapping bodies!
This is my node structure:
KinematicBody2D
- Sprite
- CollisionPolygon2D
When I use collisionPolygon my bodies do not overlap. So I disabled collisionPolygons.
All of these bodies are child of an area2D node. I tried using get_overlapping_bodies but it always returns 0 object.
I’m just so much confused! Can someone explains what should I do?