[Solved] Trying to calculate the angle between bullet and armor

Hello DevForum,

so recently I’ve started coding my own tank game and therefore I have stumbled upon calcuation the relative armor thickness, when a bullet hits a piece of armor.

To run this calculate I require three parameters
h, the armor thickness
alpha, the angle the bullet hit the armor.

I am not sure how to calculate alpha, I have looked at a few DevForum posts but they have not been very helpful in this particular situation.

What I am exactly trying to calculate:


Thank you for your help!

1 Like

You can use the dot product of two unit vectors.
Roblox provides you with a function to do this! Vector3:Dot(other_vec) returns a scalar, or the angle, between two vectors.

4 Likes