How to cast a ray to any direction?

Hi. I want to cast a ray from one point to a random direction up/down/left/right, just any direction. Can anyone tell me the solution? I can’t put my head around to how to do it. Thanks

1 Like

Thanks so much!

Use the Random unit vector node and multiply it by a float value, this float value is the distance of the trace. Add that to your actors location to get the trace end point.