This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

So, i have a 2 enemy kinematicbody2d, they move in a specific path, but they both keep colliding into each other, blocking both of them's way, my enemy does NOT have a area2d in it, I want to do this without using layers/masks

my enemy looks like this:
Enemy (node)
--|StartPosition (position2d)
--|EndPosition (position2d)
--|Body (kinematicbody2d)
--->|CollisionShape2D
--->|Sprite

Godot version Godot Engine v3.3.stable.official
in Engine by (14 points)

Why do you not want to do with without using masks? It would be simple to just turn off the mask for the enemy layer to prevent collisions.

If i do so, my bullet does not collide with the enemies

Nevermind, I just found a solution

I had figured out that my raycast2d was not on the same collision mask as the enemies, Thanks for helping me :D

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.