RigidBody2D collide

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

I have 2 Rigidbody’s which i don’t want to collide to each other, istead i want them go trough.
The Rigidbody2D is connected to a CollisionShape2D. And on the Outside of the Screen i have made a CollisionPolygon2D.
I want them to only bounce of the CollisionPolygon2D not CollisionShape2D.

can someone help please.

:bust_in_silhouette: Reply From: sash-rc

Use collision Layers and Masks.

https://forum.godotengine.org/4010/whats-difference-between-collision-layers-collision-masks