Trying to make the player swing on a pendulum with the mouse on a right-click being the pivot, so far managed to find the distance between the player and the mouse, the angle, and from that the pendulum period and frequency. How do I use these to calculate velocity?