I have a scene with a sphere in it. The camera is presently facing the
the top of the sphere as the sphere is rotating in the Y axis. I want
the camera to face the "equator" of the sphere as it's rotating. I've
tried many different angle parameters but it always hovers over the
top looking down at the sphere. How do I change the tilt/axis of the
camera?


var scene:Scene3D = new Scene3D();

var camera:HoverCamera3D = new HoverCamera3D({zoom:1, focus:400,
distance:400});
camera.panangle = -180;
camera.tiltangle = 15;
camera.yfactor = 1;
var view:View3D = new View3D({scene:scene, camera:camera});

addChild(view);
view.x = 800;
view.y = 400;

this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
function onEnterFrame(event:Event):void {
        // rotate sphere around the Y-axis
                mySphere.rotationY = getTimer() / 200;

        view.render();
}

Reply via email to