I wrote this example a couple of years ago while researching Actionscript 3, inverse kinematics and the mathematic principles behind motion. I’m currently porting it to a CSS3 example.
Get the Flash source files here.
The following Actionscript 3 snippet is the bread and butter of the code that makes the above example possible:
//calculates angle of centre
var [...]
Actionscript 3 draggable objects and kinematics example