try to this.

var plane:Plane = new Plane();
plane.width = 100;
plane.height = 50;
plane.rotationX = 90;
plane.x = 100;
plane.pivotPoint = new Vector3D(plane.x - 50,plane.y,plane.z);
plane.moveTo(plane.x + 50,plane.y,plane.z);
plane.addOnMouseDown(girar);
scene.addChild(plane);


function girar(event:MouseEvent3D):void{
 if(event.target.rotationY != 90){
  TweenMax.to(event.target,1,{rotationY:90});
 }else{
  TweenMax.to(event.target,1,{rotationY:0});
 }
}


2011/1/26 Teda <[email protected]>

> I cannot achieve a normal turning of pages (planes).They are rotated
> from the center,and I need that the rotation would be around a
> corner.I tryed to change the "pivotPoint",but this parameter does not
> affect my rotation.
> Thanks

Reply via email to