#(Script Graph) Help with Raycast 2D

1 messages · Page 1 of 1 (latest)

foggy rose
#

its getting "Null" and i dont know how to fix it anymore

jolly wasp
#

that would probably indicate that your raycast isn't hitting anything

#

your layermask is wrong

foggy rose
#

it is not

jolly wasp
#

it needs to be 8 for layer 3

#

your current layermask would allow for layer 0 or 1

foggy rose
#

whatttt

jolly wasp
#

the "mask" in "layermask" is an important part

#

it's not a layer index

foggy rose
#

ohhh

#

so basically for it to work my layer and layer mask should be...?

jolly wasp
#

(keep in mind that layers start at 0)

foggy rose
#

where is the interactive tool im blind

jolly wasp
#

ah, it doesn't show a decimal value

foggy rose
#

can you tell me or do you not know?

jolly wasp
#

i already told you

#

it also seems that there should be a layermask node that you can use to select specific layers easily

foggy rose
#

LIFE SAVER TYSM

#

(it was the node)

#

now i have a new issue (not related to this) the boolean is only being sent to one

jolly wasp
foggy rose
#

sorry i overlooked that

#

mb