I want to convert X and Y velocities to angular velocity, this is the formula I am currently using to calculate the initial velocity by the x and y values and then turn it into angular velocity for my circle object:
Av = Sqrt(Vx^2 + Vy^2) / R
Angularvelocity = Squareroot of (Velocity x^2 + Velocity y^2) / Circle's radius
This is how it simulates in my programming: http://jsfiddle.net/yzb9P/2/ (Click to change the balls position)
Now since a square root can't be negative, this won't work when the ball is supposed to rotate anti-clockwise. So, I need a signed version of the initial velocity that also can be negative, how do I calculate that?
I've heard about that the Wedge product is working for this, and I've read many articles about it too, but I still don't understand how to use it, please help!