- float NpcQuaterToRot(float qw, float qx, float qy, float qz){
- float qw2 = qw*qw;
- float qx2 = qx*qx;
- float qy2 = qy*qy;
- float qz2 = qz*qz;
- float yaw = atan2(qw*qz + qx*qy, qy2-qx2-qz2+qw2);
- return yaw * 57.29578f;
- }
- int main() {
- float w = 0;
- float x = 0;
- float y = 0.6087613;
- float z = -0.7933534;
- float Dir = NpcQuaterToRot(w, x, y, z);
- cout << "Dir: " << Dir << endl;
- }
Drakia wrote:And MaTTx, is there a reason you're laughing at me?
Because he thinks he is better than everyone else, i don't see him contributing in any way to the community, all i have seen from him is insults towards people who need help.