### Programming Adventures 2 - Unity3D Translation

Programming Adventures 2 - Unity3D Translate
When moving objects using

That means that a square object rotated 90 degrees right will translate +Y when translated by (10, 0, 0).

This bug happens when trying to translate objects using world space vectors.

Solution The solution is to use

*, its direction is based on the object's local transformation.***gameObject.transform.translate(x,y,z)**That means that a square object rotated 90 degrees right will translate +Y when translated by (10, 0, 0).

This bug happens when trying to translate objects using world space vectors.

Solution The solution is to use

*this avoids the local transformation stack!***gameObject.transform.SetPositionAndRotation( gameObject's position + translation direction, __);**