background: in my third person shooter i have a ray cast that comes from the camera and serves as the direction that a projectile should travel to. A projectile is instanced at the end of a gun and I use the look_at function to get the projectile to face the direction of the collision point of the ray cast.
the problem is that because my camera is slightly above the player, quite often the projectiles fall short and hit the ground before hitting their targets. I know why this happens and it's because of the look_at function, this function is making my projectiles look towards the ground too sharply. Overall, this system is great for a first person shooter but not so good for a third person shooter where the camera is offset or above the player, which means to look in front of myself In the game, I have to look down slightly which causes this problem. Moving the ray cast higher or lower means that the ray-cast no longer accurately points towards the cross hairs at the center of the screen.