How to use collision detection of one Kinematic2D and one RigidBody2D?

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

I have no idea How to use collision detection for using as a trigger.One is a Kinematic2D and another is RigidBody2D,Both with ColisionShape2D.But these objects should pass through each other.

:bust_in_silhouette: Reply From: kidscancode

This is what collision layers/masks are for. See this: