Does anyone have any advice on rot physics? I've got various objects which have multiple moments acting on them dynamically from different points, and need to accurately rotate the objects under the action of the moments.
Main problems which spring to mind:
- What's the centre-of-rotation when acted on by multiple moments?
Well, duh! After thinking about this a bit more, I realised that by definition the centre-of-rot has to be the centre-of-mass. I'm dealing with multiple differently-defined centres-of-mass for the same body (e.g. centre-of-buoyancy for floating objects) and was being very thick, and worrying about something I shouldn't have bothered with!
Sadly, I've also discovered that Java2D is horrifically slow once you start using complex CAG operations

(. It wasn't my physics engine that was slow, it was Java2D that was painting slowly!