Thanks) It works. What does it mean scaleX = -1 ?

On 11 мар, 16:56, savagelook <[email protected]> wrote:
> replace:
>
> s.invertFaces();
>
> with:
>
> s.scaleX = -1;
>
> On Mar 11, 9:47 am, metSyS <[email protected]> wrote:
>
>
>
> > Am I doing something wrong?
>
> > private function init3d():void
> >                 {
> >                         scene=new Scene3D();
>
> >                         cam=new HoverCamera3D({distance:1100});
> >                         cam.targettiltangle=0;
> >                         cam.tiltangle=0;
>
> >                         view=new View3D({stats:false, scene:scene, 
> > x:(stage.stageWidth/2),
> > y:(stage.stageHeight/2), camera:cam});
> >                         addChild(view);
>
> >                         s=new Sphere({radius:1500, color:"blue#white"});
> >                         s.invertFaces();
> >                         view.scene.addChild(s);
> >                 }
>
> > public function onEnterFrame(e:Event):void
> >                 {
> >                         var x:int=-((mouseX-(stage.stageWidth/
> > 2))*0.1);
> >                         var y:int=-((mouseY-(stage.stageHeight/2))*0.1);
> >                         cam.target.x=x;
> >                         cam.target.y=y;
>
> >                         cam.hover();
> >                         view.render();
> >                 }

Reply via email to