I've got a problem concerning the rotation of an vector (core::vector3d).

On the delineation you can see an 3D unit circle, described the the normalized direction vector.
If I rotate the vector
Code: Select all
vector3df vDirection(0,0,1);Code: Select all
this->vDirection->rotateXZBy(10.0f, vector3df(0,0,0));But if I want to rotate vertical, from point 1 to point 2 using the rotateXYBy method
Code: Select all
this->vDirection->rotateXYBy(10.0f, vector3df(0,0,0));I also tried to use the rotateYZBy method and both, the rotateXYBy and rotateYZBy methods. Nothing helped.
While the horizontal rotation works perfect, the vertical went nuts.
Can somebody help me?