This commit is contained in:
mangavalk committed 2018-11-10 23:54:58 +01:00
1 parent 67eb222ced
commit e6697e9980
4 files changed
+65 -35

No files matched your search

+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;