Angular velocity center for 2D GameObject

down vote favorite

I try to add angular velocity to my GameObject with this command:

rigidbody2D.angularVelocity =
Random.value * tumble;

All works, but I want center of velocity be in the center of my rigidbody, but center is outside my GameObject and looks like every time in different place. How can I set rotation center to the center of my rigidbody?


You need to set the Unity - Scripting API: Rigidbody.centerOfMass