- Home /
Torque stopped working after update
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);
Answer by deliinteractive · Oct 20, 2014 at 08:43 PM
I had exactly the same problem after trying the Unity 4.6 beta. I switched back to Unity 4.5.5 and my torque works again just fine. Hopefully they get that fixed when the patch comes out of beta.
Your answer
Follow this Question
Related Questions
Rotate a 2D Rigidbody to a desired angle using AddTorque? 3 Answers
Rotate object based on projectile impact 0 Answers
rigidbody2D.AddTorque() works differently on iOS, in editor and in web player 1 Answer
Angular velocity not affecting Rigidbody2D 1 Answer
After AddTorque, the resulting angularVelocity depends of the RigidBody's velocity? 0 Answers