v4 transformation after rotation added.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user