:)`thanks a lot.
I was wondering if this problem can be solved using Euler angles instead of phi and theta (like in rigid body dynamics).How should I begin, Do you have any idea?