How to go through north and south pole?

Hi,

I know if I create the scene by myself the global can move through north and south pole. But when I create global by CesiumViewerWidget, north and south pole cannot go through when I drag and throw global. What's the different between the two methods? And, how go through pole when use CesiumViewWidget?

Thanks,
Shawn,

The widget is doing that with this code:

        var camera = scene.getCamera();
        camera.controller.constrainedAxis = Cartesian3.UNIT_Z;

You can turn it off by setting constrainedAxis to undefined.

–Ed.