Example #1
0
    // Update is called once per frame
    void FixedUpdate()
    {
        Vector3[] rots = rotations.CopyToArray();
        rotations.Clear();

        foreach (Vector3 angle in rots)
        {
            //rigidbody.AddForce(force);
            transform.eulerAngles = angle;
        }

        if (rots.Length > 0)
        {
            print(String.Format("Added {0} force(s)", rots.Length));
        }
    }