Hi Jean,
Thank you for replying, I have tried longer distances and it doesn't seem to work, I am just trying to get the camera to move when its view is obstructed, is there any other way to detect this.
I am struggling a bit to understand the relationship between distance and direction. What sort of values should I try, I was under the impression if I could see the debug line hitting the terrain it should register hit, am I wrong about its operation?