Hello !
I’m trying to make a floor in 3D, the user can rotate it i X axis and move in any coordinate (X,Y,Z). The code works good, but when I move in Z coordinate all the moves are really slow. I think it’s because Flash creates a Matrix3D and for every move calculates this:
X = xcameraFocalLength/cameraRelativeZPosition
Y = ycameraFocalLength/cameraRelativeZPosition
I don’t know how to solve this, can somebody tell me some tips to rise the performance?
Thanks!!!
PS: sorry for my bad english
PS2: this is my code: (enterframe Event)
function MoveUp(e:Event):void
{
this.MC.y+=5Math.cos(angle);
this.MC.z+=5Math.sin(angle);
}