Collisions Using Groups

Godot Version

4.2.1

Question

I have a fish who shoots bubbles and when the bubble collides with the sailfish I want the sailfish to disappear. I assigned the bubble scene to a group however when the two collide nothing happens.

Code:

Thank you for your help.

Groups aren’t important for collisions. You need to assign your objects to collision layers.

Something else I’m noticing in you pictures is that a character body and rigid body need a collision shape and they don’t have one… on less you dynamically add them in code?