Option to have object collision with an object in a different layer



  • Layers are a great way to organise your project, but I can’t always use it when I want, because there is no option to let an object collide with an object in a different layer.



  • @Kamdroid YES!!!

    This is known as Collision Filtering/Masking in most environments, and often a pain in the arse to get right. But with layers, it's easy. This layer interacts with that one, but not that one, etc...

    EDIT: Addendum...

    And most physics engines have come to standardise around talking about contact instead of collision. This makes more sense.

    Particularly with regards two still contacting bodies, which is called "While Colliding" in hyperPad, and often pissed me off because a collision is an event, but contact is a state, mostly. When making initial contact describe this event perfectly as a state having changed because they're now in contact and initial contact has occurred, ending/finishing contact and remaining in contact... etc...

    But I'm being pedantic about semantics...

    So should stop...



  • @Kamdroid I’ve kind of found ways around this, but they are really confusing and involve turning on and off an Ignore Collisions behaviour lol. So yeah this could be good.