Hello everyone,
I'd like use the RayCast2D node but i don't understand if i can filter or not the bodies/areas.
So, when i have created a factory, i build vehicle from this factory, when the vehicle spawn in that factory, it must move to the down-rigft. If an other unit is in front, i must send a signal to "push away" this unit.
But, the buildings has a area, like units, so how can i "filter" only the units to only detect them ?
And when i set detect bodies rather than areas, the "get_collider" method detect itself ?
Each units have a area node because they are added as instances.

EDIT: find the answer, an error in my code and about parents