Can a RayCast2D detect an Area2D?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By 9BitStrider

Can a RayCast2D child node be used to detect an Area2D? I’m wanting to check if the RayCast is overlapping an Area2D for my ladder functions. (If the player is standing on the very top of a ladder)

:bust_in_silhouette: Reply From: ShivaRa

You can. Just try.

:bust_in_silhouette: Reply From: Diet Estus

Yes, just make sure your Area2D is in a collision layer that corresponds to the collision mask of the Raycast2D.

This was the missing link. I figured it out after some tinkering. Thank you.

9BitStrider | 2018-10-21 15:11