moveForward moves it into the direction it's facing. It takes the rotationXYZ into account, and if perfect for something like games.
So if your car was turning, instead of calculatiing the new x and z coordinated, the moveSomething functions does that for you. It's one of my favorite things, makes life a ton easier! But yeah, if you are not rotation your model, it's probably better to set the new x,y,z yourself. -Pete On Thu, Nov 13, 2008 at 12:55 PM, Jensa <[EMAIL PROTECTED]> wrote: > > Is there a difference between: > > cube.moveForward(10); > > and this: > > cube.z += 10; > > Do I get anything extra from using the moveForward method? I had a > peek at the code and it looks only like a more "expensive" way to do > this? > > J -- ___________________ Actionscript 3.0 Flash 3D Graphics Engine HTTP://AWAY3D.COM
