cube.moveForward(10); will move an object forward along it's local z axis.

cube.z += 10; will move an object along it's parent's z axis

so if the object is not rotated (ie. rotationX, rotationY and rotationZ =
0), you will see no difference.

Rob


On Thu, Nov 13, 2008 at 5: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




-- 
Rob Bateman
Flash Development & Consultancy

[EMAIL PROTECTED]
www.infiniteturtles.co.uk
www.away3d.com

Reply via email to