updated walk and controller input to joystick

This commit is contained in:
2022-12-04 23:11:05 +01:00
parent 40e71c5ce4
commit be04329d65
25 changed files with 677 additions and 941 deletions
+8 -8
View File
@@ -81,13 +81,13 @@ public class RotationControl : MonoBehaviour
//rotation.y = r2.update();
//rotation.z = r3.update();
//transformation.x = r4.update();
//transformation.y = r5.update();
//transformation.z = r6.update();
//transformationBeforeRotation.x = r4.update();
//transformationBeforeRotation.y = r5.update();
//transformationBeforeRotation.z = r6.update();
/*transformation2.x = r7.update();
transformation2.y = r8.update();
transformation2.z = r9.update();*/
/*transformationAfterRotation.x = r7.update();
transformationAfterRotation.y = r8.update();
transformationAfterRotation.z = r9.update();*/
body.transform.eulerAngles = new Vector3(rotation.x*-1, rotation.y*-1, rotation.z*-1);
body.transform.position = transformation;
@@ -96,8 +96,8 @@ public class RotationControl : MonoBehaviour
for (int index = 0; index < rotation2.Count; ++index)
{
rotation2[index].GetComponent<Leg>().rotation = rotation;
rotation2[index].GetComponent<Leg>().transformation = transformation;
rotation2[index].GetComponent<Leg>().transformation2 = transformation2;
rotation2[index].GetComponent<Leg>().transformationBeforeRotation = transformation;
rotation2[index].GetComponent<Leg>().transformationAfterRotation = transformation2;
rotation2[index].GetComponent<Leg>().FixedUpdate();
}
}