and i can do that with setRotation. i just dont know how to calculate how much should i rotate on witch axis.
i need something like that
Code: Select all
vector3df curRot = joint->getRotation();
curRot = calculateGlobal(curRot) + vector3df (90, 0, 0);
curRot = calculateLocal(curRot);
joint->setRotation(curRot);
Code: Select all
joint->setRotation(joint->getRotation() + calculateLocal(vector3df(90, 0, 0));
like, if its rotated by 90 on Y axis, then it should return vector3df(0,0,90);



