Collision and no collision

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

Assuming that two objects (kinematicbodies2D) collide with a third object(kinematicbody2D) but at the same time when these two objects touch each other we do not want to be created a collision between them, is there some way to do that?

Thank you.

:bust_in_silhouette: Reply From: usurun

You have to set the layers in the PhysicsBody2D.
Each box you enable is a layer collidable, if both have it marked they will collide.

Hmmm…thank you very much.

Nick888 | 2019-06-07 14:08