Topic was automatically imported from the old Question2Answer platform.
Asked By
Drawsi
I can make the raycast2d detect the area but not the other way around.
Having the area detect the raycast would save me some braincells so any ideas u have just drop them here please!
RayCasts can’t be detected since they don’t have a Collision Layer. Adding an object that can be detected as the parent of the RayCast is probably the solution you’re looking for.
the area2d can listen to the raycast detecting things. then check if it’s him who was detected. it should be equivalent to the area detecting the raycast.