Hello ,
I'm strugglin with Area2d and multiple CollisionPolygonShapes.
Problem is that Control-Node covers the Input for the Area2d Node. You can bypass this with setting Mouse/Filter to "pass" on the Control-Node and the Area2d recives the Input.
This works fine for the input callback in area2d, but there is also the input_event callback inherited from CollisionObject2D which offers more information (viewport, event,shape)
For detecting a particular shape this is usefull.
The Input is a screentouch/drag, starting on a control node and ends up on area2d(with several shapes)
the input detects the release(!is_pressed) on the area2d. the input_event unfortunately does it not.
Workaround would be instead of area2d with more than one shape, just using one shape on several area2ds.
But is there maybe a chance to detect a particular shape from area2d with the help of... whatever :) I've tried using Physics2DServer and the Methods from CollisionObject2D like create_shape_owner() get_shape()... very unsuccessful :)
Thanks for any suggestions/tips and help!