[SOLVED] Chase camera collision with terrain (heightmap)

I believe you also want the ray origin to be the location of the target that is being chased/orbitted by the camera. This way, you will just be casting ray backwards from the player aiming at the camera, and can then place the camera at the collided point if there’s any collision before within the max distance.

And then I don’t think you would need to do a left/right/forward collision either, only one collision back from the player to the camera.

I’ve done the same thing in my own project to confirm the concept works, but another user @capdevon has coincidentally just posted a great video displaying the same thing to the monthly WIP thread with nice debugging arrows to show what exactly is going on, hopefully the video in his post can help as well.