I was just finishing work for today and for some reason this appeared to me, i really don't know why, here's the code:
onready var sensorFrontRight = get_node("RayCasts/RayCastFrontRight")
if sensorFrontRight.cast_to(0, 0, sensorFrontLength) && reversing != true:
avoiding = true
avoidMultiplier -= 1.0
the node is a RayCast and on the documentation it's says i can use the method cast_to but at the same time it isn't working, what am i missing here?