Want to have a rope travel to the mouse on m2 click and then act as the pivot of a pendulum, with the player being the bob. Used some math I don’t really understand to get the angle of the mouse from the player, and can get the distance very easily. Is that enough information to calculate the velocity of the bob? If not what other information do I need? How do I calculate velocity from that? Using sfml. Beginner to programming so apologies if this is a stupid question. Edit: Found out how to find the period and frequency of a pendulum, how do I apply those to velocity?
edit 2: https://youtu.be/9iaEqGOh5WM this video was very helpful