Drag the ball SLOWLY around then release the mouse to make it swing.
I got this from the trigonometry tutorial by AtomicBawm3. You should look at the project.