I've not tried it but you could try the Euler angles option to see if it works there. or maybe setorientationlocal rather than rotatelocal?