I'm working on some turrets for a naval game...they operate on HingeConstraints. I've figured out (somehow) how to make the turrets aim in the right X and Z axis, but I'm still figuring out how to calculate the appropriate elevation angle. In other words, how could I use the Dot product to calculate the angle between ### ####### height? I've tried inputting it all manually as trigonometry but for some reason it's not working out the way it's supposed to, and I suspect that would lag quite a bit. |