so I have the RB2D collision layer just for collisions, and I have a area2d collision layer for detecting contact between cloned nodes, but it doesnt detect the two earth nodes touching unless I set the area2D collision mask to layer 1 and I’m not sure why.

  • popcar2
    link
    fedilink
    arrow-up
    7
    ·
    3 days ago

    You can create a Group for the planet then check in your code if that’s what the area is touching. Ex: if body.is_in_group("planet"): #do something