Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | StrikerSVX |
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:
if sensorFrontRight.is_colliding():
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?