Help wanted: wobbly head/"bobblehead" effect code?

Blitz3D Forums/Blitz3D Programming/Help wanted: wobbly head/"bobblehead" effect code?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

The head needs to be a seperate object, because the model is intended to be customisable (you can switch out heads, arms and bodies). Your advice is useful and it points me in the right direction (thanks!), but - argh - as both a complete physics novice and a mathematics dunce this all sounds hellishly complicated.

I should also add that the head should return to its default upright, normal position when the model comes to a stop, and there needs to be some constraints on the maximum range of wobble.

I don't derive any personal satisfaction from coding, nor do I want to reinvent the wheel, so if there is a simple (and - importantly - free) physics system that can handle this then I'll happily use it.