This commit is contained in:
2018-11-10 23:54:58 +01:00
parent cbe7b00b3a
commit 057b2475b2
4 changed files with 341817 additions and 609 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ public class Foot : Component
RotateY();
RotateZ();*/
// Z and X is working. Y has problems when combined with others.
// the order of these rotation transformations is important!!!
Vector3 v = new Vector3((float)X, (float)Y, (float)Z);
v = Quaternion.Euler((float)0, (float)rotationY, (float)0) * v;
v = Quaternion.Euler((float)rotationX, (float)0, (float)0) * v;