- Joined
- Dec 23, 2006
- Messages
- 94
- Reaction score
- 1
how do u know wich .opl file is for example fort or somethin?
how do u know wich .opl file is for example fort or somethin?
the programm isn
You were always able to rotate objectswhen you update it maybe you can change it also, so that you can rotate the objekts like in your GB Viewer or more or less the same
public Vector3 QuaternionToEuler(Quaternion q)
{
float sqX, sqY, sqZ, sqW;
Vector3 radians = new Vector3();
Vector3 degrees = new Vector3();
sqX = q.X * q.X;
sqY = q.Y * q.Y;
sqZ = q.Z * q.Z;
sqW = q.W * q.W;
radians.X = (float)(Math.Atan2(2.0 * (q.Y * q.Z + q.X * q.W), (-sqX - sqY + sqZ + sqW)) * -10430.3783505);
radians.Y = (float)(Math.Atan2(2.0 * (q.X * q.Y + q.Z * q.W), (sqX - sqY - sqZ + sqW)) * 10430.3783505);
radians.Z = (float)(Math.Asin(-2.0 * (q.X * q.Z - q.Y * q.W)) * -10430.3783505);
degrees.X = RadiansToDegrees(radians.X);
degrees.Y = RadiansToDegrees(radians.Y);
degrees.Z = RadiansToDegrees(radians.Z);
return degrees;
}