Easiest way to do that is to define a new variable like Vector3( Vector3.forward.x, 0, Vector3.forward.z);
That, however, will have limited uses, as you may want it to move in y occasionally. A little more context would help me help you better :P for example, is this for a 3rd person camera?
↧