I noticed on "The Nature of Code" website, that if you click anywhere on the "Example 3.10: Swinging pendulum" window, the pendulum will lose its speed, because of setting aVelocity to 0 in stopDragging() function. So I just added if (dragging), which fixes this problem :)
Thank you for the book and YouTube channel (I'm making this pull request thanks to your "Git and GitHub for Poets" tutorial), cheers!
Hi Dan!
I noticed on "The Nature of Code" website, that if you click anywhere on the "Example 3.10: Swinging pendulum" window, the pendulum will lose its speed, because of setting
aVelocity
to 0 instopDragging()
function. So I just addedif (dragging)
, which fixes this problem :)Thank you for the book and YouTube channel (I'm making this pull request thanks to your "Git and GitHub for Poets" tutorial), cheers!