v2 WORKING ROTATIONS
This commit is contained in:
@@ -25,34 +25,34 @@ public class RotationControl : MonoBehaviour
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
/*if (!dir2 && rotation.x < max)
|
||||
if (!dir2 && rotation.x < max)
|
||||
rotation.x += speed2;
|
||||
else if (!dir2)
|
||||
dir2 = !dir2;
|
||||
else if (dir2 && rotation.x > min)
|
||||
rotation.x -= speed2;
|
||||
else if (dir2)
|
||||
dir2 = !dir2;*/
|
||||
dir2 = !dir2;
|
||||
|
||||
/*if (!dir3 && rotation.y < max)
|
||||
if (!dir3 && rotation.y < max)
|
||||
rotation.y += speed3;
|
||||
else if (!dir3)
|
||||
dir3 = !dir3;
|
||||
else if (dir3 && rotation.y > min)
|
||||
rotation.y -= speed3;
|
||||
else if (dir3)
|
||||
dir3 = !dir3;*/
|
||||
dir3 = !dir3;
|
||||
|
||||
/*if (!dir && rotation.z < max)
|
||||
if (!dir && rotation.z < max)
|
||||
rotation.z += speed;
|
||||
else if (!dir)
|
||||
dir = !dir;
|
||||
else if (dir && rotation.z > min)
|
||||
rotation.z -= speed;
|
||||
else if (dir)
|
||||
dir = !dir;*/
|
||||
dir = !dir;
|
||||
|
||||
body.transform.eulerAngles = new Vector3(rotation.x*-1, rotation.y, rotation.z);
|
||||
body.transform.eulerAngles = new Vector3(rotation.x*-1, rotation.y*-1, rotation.z*-1);
|
||||
|
||||
for (int index = 0; index < rotation2.Count; ++index)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user