Collision Layer bug?

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

I’m working on a asteroids clone and encountered a strange issue, the asteroid cannot detect if the area entered is the ship or not

I have attached a minimal version of the game, please look through it, any help is greatly appreciated

:bust_in_silhouette: Reply From: Kronos328

Hello! I took a look at the ship and the asteroid’s scenes. In the asteroid script, you check if the collided area is in the “ship” group (which is correct), but the ship scene does not have any groups set.

If you go to the root of the ship scene, and click on the “Node” tab on the top right corner, and assign the ship group to it, does the asteroid collision work? Remember that the name of the group must be exactly the same name you are checking on the asteroid script.

Hope this helps!

thanks, for some reason I was confusing collision layers with groups :stuck_out_tongue:

tshrpl | 2022-01-17 06:41