Rotation example test0q.html using Quarternions to rotate in either World or Local object axis and avoiding gimbal-lock.
Optimization to calculate average Z during main scene processing loop