Hi, I have made a system where when you press E, your horse spawns around 20 studs in front of the player and the horse runs to the player. I want to know what would be the best way to do this considering what if there was a wall near the player and the horse goes through the wall. I took this approach by using rays, but I realized this can happen:
https://gyazo.com/fb18e425a26edccce549aab365ad4502
The ray does not find a wall, but the horse still falls making the spawn an invalid spot to spawn. Yes, I did try making a ray shoot down from where the horse is about to spawn, but it is really not a convenient way to make this. Does anyone know a way I could achieve this?