today I found very simple but very annoying Bug,,

It is related to the:
vec_rotate (VECTOR* vDir, ANGLE* vAng)

this function is useful in many programming issues like camera and movement vectors

However, this function is not giving correct results if the vector that you want to rotate is not aligned to the axis

i.e: vector (10,10,10) if you want to rotate it around the origin by angles 90,45,0

you will have very funny results that are totally wrong at all

so try to avoid this function now
also:
ang_rotate

same error!

It only gives right results if you want to rotate a vector that is aligned to the xyz axis, like vector (10,0,70)

or if you rotate a vector without changing the tilt componant
i.e rotate vector (10,10,10) using the angles (90,0,0)
this will work (only accept pan angle)

Last edited by SeaCancer; 03/14/12 21:20.