raycasts detects the patents parent.

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

i have used ray casts to allow wall jumping, but i had used 4 so i put them in a node2d to organise my scene, but now the raycasts detect the player as a wall. how can i make the raycasts ignore both the parent and the parents parent

:bust_in_silhouette: Reply From: ejricketts

Sounds like you need to have a look at your collision layers and masks. Set the mask of the raycasts to only “look at” what you want.