Try calling hover() after you set up the camera:

camera.hover();

and then

camera.tiltangle = 0;

should make him look at the equator.

Best
-Pete




On Tue, Dec 2, 2008 at 5:28 PM, prototype <[EMAIL PROTECTED]> wrote:

>
> 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();
> }




-- 
___________________

Actionscript 3.0 Flash 3D Graphics Engine

HTTP://AWAY3D.COM <http://away3d.com/>

Reply via email to