I have an Area2D (a character) who has several collisions shapes, one for his body, one is a large circle around him which is its range to detect object.
Is it possible to put each collision shape in a different layer object? Because I want the first collision shape to only collide with other characters, and the second one to only collide with objects (another node of type Area2D).
Unless, the only solution is to distinguish collisions (process some and ignore others) in the code? Because as far as I know, only an area2D can have a collision layer, not his collisions shapes.
Or maybe, it's good practice to define the node tree like this?
Area2D (Character)
--Area2D (to detect other characters)
---- CollisionShape
--Area2D (to detect objects)
---- Collision Shape
instead of
Area2D
--Collision1
--Collision2
Which is the best solution?