raycast not working

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

i have a box that is kinematic 2d and has 2 raycast on both sides to check for collision but its not working heres the code

func _physics_process(delta):
motion.y+=GRAVITY
if raycast1.is_colliding() or raycast2.is_colliding():
	print("true")

it not detecting anything

:bust_in_silhouette: Reply From: mrLogan

Did you remember to enable the RayCast using the tickbox under the properties? by default it is not enabled .

( ._.)… why didnt i see that

Newby | 2018-05-02 12:53

The box is ticked and I still have this problem… h e l p

Anastasia | 2019-12-24 12:08