Ok, this is a weird one. I am making a 2.5/3D game(depending on who you talk to) not unlike doom and I have a turret that sits higher than the player. I have a weapon that shoots a projectile, and I need it to appear like the projectile moves upward at an angle to hit the turret. I need to be able to find the distance between the player and the turret so that I can find the slope of the angle between the player and the turret and then figure out how much the projectile needs to go up every tick. A bit convoluted, but I haven't thought of anything better. TO MAKE A VERY COMPLICATED QUESTION SIMPLE: how do I find distance?