Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Footurist | |
Old Version | Published before Godot 3 was released. |
I have an Area2D
with 3 CollisionPolygon2D
assigned to detect 3 different parts of the Area2D
. Now, the problem is : body_shape_entered
of Area2D
only supplies a shape index called area_shape
, to know which shape of all the sub-shapes combined of the CollisionPolygon2Ds
collided.
To know which CollisionPolygon2D
collided I have to count them and make a relatively complex multi-line If-Clause
.
Isn’t there a simpler way to access the actual CollisionPolygon2Ds?
Thanks alot for your patience.
Greetings, Footurist