Shifted the rotation to the average position to outside of the numerical integration.
This now occurs once per function call, rather than hundreds of thousands of times.
Authored by: bugman 2011-12-08
Parent: [r15052]
Child: [r15054]