v4 transformation after rotation added.

This commit is contained in:
2018-11-11 22:26:43 +01:00
parent b9a5e6d523
commit 33da93b63b
7 changed files with 149 additions and 87 deletions
+5
View File
@@ -15,6 +15,7 @@ public class Leg : MonoBehaviour {
public Quaternion rotation = new Quaternion(0, 0, 0, 0);
public Vector3 transformation = new Vector3(0, 0, 0);
public Vector3 transformation2 = new Vector3(0, 0, 0);
public bool invert = false;
@@ -47,8 +48,12 @@ public class Leg : MonoBehaviour {
foot.translateY = translateY;
foot.translateZ = translateZ;
// transform before rotation.
foot.transformation = transformation;
// transform after rotation.
foot.transformation2 = transformation2;
foot.invert = invert;
foot.setleg();