Hello, I'm with a doubt. How I can flip a angle vector horizontally?
I've tried this, but doesn't work as well.
Quote:
The reflected amount (just looking at the maths) would be (180 - angle)
Code:
Angle | Reflection
------+-----------
0 | 180
90 | 90
89 | 91
91 | 89
360 | -180
270 | -90
Note the negatives if you fall below the "horizontal plane" - which you could leave as they are, or handle as a special case.
|
__________________