Hi.
If you turn on debug on the raycast you will see what happens on the scene view.
you might get better results with a collider instead of a raycast but i think even that has its limit.
Basically its a frame issues the raycast will cast once every frame so if you turn very fast it will cast for example 1 frame in 0 degree and the next in 45 degree.
Btw this is basically on all game engines not only unity.