Added serial link to SSC32

This commit is contained in:
2018-11-12 23:57:23 +01:00
parent 33da93b63b
commit 509a4e2d64
10 changed files with 158 additions and 61 deletions
+15 -15
View File
@@ -57,17 +57,17 @@ public class RotationControl : MonoBehaviour
public GameObject body;
public GameObject body2;
public rotation r1 = new rotation(0.1f, -15, 15);
public rotation r2 = new rotation(0.2f, -15, 15);
public rotation r3 = new rotation(0.3f, -15, 15);
public rotation r1 = new rotation(0.1f, -10, 10);
public rotation r2 = new rotation(0.2f, -10, 10);
public rotation r3 = new rotation(0.3f, -10, 10);
public rotation r4 = new rotation(0.01f, -3, 3);
public rotation r5 = new rotation(0.02f, -3, 3);
public rotation r6 = new rotation(0.03f, -3, 3);
public rotation r4 = new rotation(0.06f, -3, 3);
public rotation r5 = new rotation(0.08f, -3, 3);
public rotation r6 = new rotation(0.1f, -3, 3);
public rotation r7 = new rotation(0.001f, -3, 3);
public rotation r8 = new rotation(0.002f, -3, 3);
public rotation r9 = new rotation(0.003f, -3, 3);
public rotation r7 = new rotation(0.1f, -3, 3);
public rotation r8 = new rotation(0.2f, -3, 3);
public rotation r9 = new rotation(0.3f, -3, 3);
// Use this for initialization
void Start ()
@@ -77,17 +77,17 @@ public class RotationControl : MonoBehaviour
// Update is called once per frame
void FixedUpdate()
{
rotation.x = r1.update();
rotation.y = r2.update();
rotation.z = r3.update();
//rotation.x = r1.update();
//rotation.y = r2.update();
//rotation.z = r3.update();
transformation.x = r4.update();
transformation.y = r5.update();
//transformation.y = r5.update();
transformation.z = r6.update();
transformation2.x = r7.update();
/*transformation2.x = r7.update();
transformation2.y = r8.update();
transformation2.z = r9.update();
transformation2.z = r9.update();*/
body.transform.eulerAngles = new Vector3(rotation.x*-1, rotation.y*-1, rotation.z*-1);
body.transform.position = transformation;