All Questions


Panoyan rafi.panoyan

I didn't understand all the interactions between Areas and Collision shapes

Since we are not verifying what CollisionShape or what Area2D are "entered" inside the corresponding callbacks (in the Player script) I don't understand which Enemy's CollisionShape2D is used to detect the collision : the one directly inside the root Enemy node or the one inside the StompDetector node ?
  • Nathan Lovato replied

    We are filtering what the area2d detects with the physics layers and masks, then by only looking for areas. With our setup there's only one collision shape that the stomp detector will react to.