I just want to know how to use rigitbody2d.AddTorque() and an example script would be great :D. I am trying to rotate a cube forever using it as a test.
Make sure that "Is Kinematic" option for rigidbody in the inspector is off. Here is a very basic example for adding torque.
Time.delta time is just to make it device independent. Hope this resolves your doubts :) |
|||
|