How do I calculate Angular Velocity pass into SetPhysicsAngularVelocity?

actually thos doesn’t work. let’s say the component turns right, it is possible that this function gives an angular speed for the opposite direction(like going the long way around)