Tnx txesmi, can vec2d_rotate also be changed so that it doesn't change the position of the vector and only the angle of the drawed selection box? I am using now for an 3d selection box too, where I already have the right the min/max vectors so vec2d_rotate messes up the position.

Through some dirty Acknex code grin I did manage to get 1 of the vectors right I think, but can't get the other one right:

Code:
VECTOR vOldP1, vDiff;
vec_set(vOldP1, vP1); //store
vec2d_rotate (vP1, camera.pan); //same as before
vec2d_rotate (vP2, camera.pan); //-
vec_diff(vDiff, vP2, vP1);
vec_set(vP1, vOldP1);
vec_set(vP2, vP1);
vec_add(vP2, vDiff); //now we have the correct vP2 XD


Last edited by Reconnoiter; 10/06/16 13:22.