SFML community forums

Help => General => Topic started by: baguettio on March 23, 2020, 08:32:47 pm

Title: How would you do pendulum movement?
Post by: baguettio on March 23, 2020, 08:32:47 pm
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?
Title: Re: How would you do pendulum movement?
Post by: eXpl0it3r on March 26, 2020, 08:46:59 am
That's pretty much just a math/physics problem. Maybe you're lucky and someone has recently done something similar, but this is probably best ask somewhere else that focuses more on math in games. ;)
Title: Re: How would you do pendulum movement?
Post by: baguettio on April 21, 2020, 05:58:40 pm
i asked on stack overflow and they told me to figure it out for myself ):
Title: Re: How would you do pendulum movement?
Post by: Hapax on April 21, 2020, 10:58:13 pm
Ok. I'm willing to give you one pointer:
https://en.wikipedia.org/wiki/Pendulum_(mathematics) (https://en.wikipedia.org/wiki/Pendulum_(mathematics))

 ;D