Implementation under way. Not stable.
In this commit, the rotation of the ball model seems correct. Some further testing and tweaking has to be done, though.