I had been using a simple line of code to spin game objects for a 2d game, after I updated unity this stopped working, any suggestions would be much appreciated.
rigidbody2D.velocity = new Vector2(rigidbody2D.velocity.x * -2, Mathf.Abs(rigidbody2D.velocity.x) * -2);
rigidbody2D.AddForce(new Vector2(0, jumpForce*1.5f));
rigidbody2D.fixedAngle = false;
rigidbody2D.AddTorque(Mathf.PI);