*press space to start -press space to put the mode into a 'draggable' mode and click to drag it. -click to put the pendulum into a 'flying' mode, then click again to re-attach the pendulum to the your mouse point! -press 'r' to reset the pendulum. -change the variables on the left to modify the physics or look of the pendulum.
I think this is a bit more accurate and gets rid of some errors of my other pendulum. Its barely different though, just keeping this here for a game I'm working on. :) *for some reason it lags when the pendulum is off screen Change-log: -tweaked physics - does it feel worse or better? -Added a little 'oush' upwards when transferring into fly mode -Added a flying mode using the mouse! Yay. -Added a reset key ('r' key) that resets everything. -Modified 'z' key functionality so it now changes the angle and length relative to the new origin position. -Fixed the 'draggable' mode -Added 'z' key functionality to moving origin point -Release