Avoid Rigidbody collide with another rigidbody

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Repertix

I’m doing a 2d top-down shooter game where I use rigidbody to work as bullets, I want them to not collide with other rigidbodies. I recently found a post where it said concave collision shapes don’t collide with other concave collision shapes, I tried this but it didn’t work.

There’s a way to avoid collision between rigidbodies?

:bust_in_silhouette: Reply From: dethland

It’s pretty easy to achieve that. Set different rigidbodys to different collision layers and collision masks. This will make them ignore each other. Hope it will help you.

:bust_in_silhouette: Reply From: klaas

Hi
you can include/exclude physics bodies from another by using collision_layer and collision_mask.

Have alook here: