0 votes

Hello !
I've got players, missile and obstacles in my game.
In order to have a bunch of modes in my game, I want to code in a modular way. That's why I've got :
1 layer/mask for objects which kill the player
1 layer/mask for objects which are destroyed by the player when they touches
1 layer/mask for normal collisions with the player

My question is : is it possible to know which layer triggered the collision ?

Thank you.

in Engine by (14 points)

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 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 webmaster@godotengine.org with your username.