Double Pendulum using Python

preview_player
Показать описание

in this video we gonna make a simulation of a double pendulum example using pygame python

for Support:

like and Subscribe

thanks For watching
like and Subscribe

music:
"Sappheiros - Memories" is under a Creative Commons license (CC-BY).

"Escape by Sappheiros" is under a Creative Commons license (CC BY 3.0)
Рекомендации по теме
Комментарии
Автор

Why does the motion gets slower and slower.... Have you added any damping or is it because memory is getting larger, anyway thanks for sharing

ayanarif
Автор

Is there any way to speed it up? For example somehow save the painted picture and just add pixels to it after the pendulum moves and print the pendulum on that

kubatkaczyk
Автор

The most annoying thing about pygame is that you can't define location in float it has to be int.

abhaykshirsagar
Автор

Really cool video. But there is a problem in the Code: if the mass of the pendulum is set very low the angle becomes infinite after some time. the sin function can't take infinite and throws an error. Any idea on how to fix it?

nfast
Автор

not quite sure how valid your physical approach is here since you are adding variables with different units, it would only make sense if you assume increments of 1 time unit so it's multiplicative neutral but then this wouldn't fit your fps compared to real life assuming SI units, also this is basically eulers method, right? the method is already quite ineffcient, so such a big time step leads quickly to false results

IlValentino
Автор

Hello I'm from Twitter you are following me

ghbmkukkk