I have a working 3D Canvas on which I am displaying a stack of ColorCube (more like Rubik's Cube, see image.) and I am using MouseRotate class to rotate the cube. The Rotation works fine when I am moving the cubes towards myself (in the positive Z direction) but works erratically when I rotate it on the other side. (Please see the attached screenshots for more clarity.)
Please let me know if I can provide any other information from my side.