Hello everyone, I am using ray tracing to calculate the direction my bullet should reflect when it hits a wall.Unfortunately, in some cases, the collision normal I obtained is only opposite to the direction of incidence, which is a very incorrect result. The final result I obtained was that the bullet returned along its original path in the direction of incidence.
I have marked the normals in the picture. The horizontal one is the first one, which is normal, but there is clearly an issue with the second normal.
I’m just calculating like this
I am using line tracing to display normals, and I am very confused about the reason for this. I hope someone kind can help me, thank you.