PDA

Volledige versie bekijken : Hulp nodig [Depth probleem]


willyy1991
%Europe/Berlin %781 %2008, 18:44
import fl.transitions.Tween ;
import fl.transitions.easing.* ;

//BACK
this.cube.back.z = 100;
this.cube.back.rotationY = 180;
//FRONT
this.cube.front.z =-100;
//TOP
this.cube.top.z = 0;
this.cube.top.rotationX = 90;
this.cube.top.y = -100;
this.cube.top.rotationY = 180;
//BOTTOM
this.cube.bottom.z = 0;
this.cube.bottom.rotationX = -90;
this.cube.bottom.y = 100;
//LEFT
this.cube.left.z = 0;
this.cube.left.x = -100;
this.cube.left.rotationY = 90;
//RIGHT
this.cube.right.z = 0;
this.cube.right.x = 100;
this.cube.right.rotationY = -90;

new Tween (cube, "rotationY", Regular.easeOut, 0, 360, 20, true);
new Tween (cube, "rotationX", Regular.easeOut, 0, 360, 20, true);



Als je het bekijkt zie je dat de diepten niet kloppen, de kubus klopt wel helemaal, iemand enig idee hoe ik een formule kan maken die de diepte veranderd zodra een vlak vooraan is, of een andere inbreng?

Neuro
%Europe/Berlin %862 %2008, 20:41
Dat moet je inderdaad zelf doen.
Dit kan je misschien verder helpen :)
http://theflashblog.com/?p=470