How to make npc just move in x axis?

i have changed Move method in Ai base ,

protected void Move (Vector3 position3D, Vector3 deltaPosition) {
bool positionDirty = false;

		if (controller != null && controller.enabled) {
			// Use CharacterController
			tr.position = position3D;
			deltaPosition.y = 0;
			deltaPosition.z = 0;
			controller.Move(deltaPosition);
			// Grab the position after the movement to be able to take physics into account
			// TODO: Add this into the clampedPosition calculation below to make RVO better respond to physics
			position3D = tr.position;
			if (controller.isGrounded) verticalVelocity = 0;

but my npc still move to all direction. :slight_frown:
pls give me a little more clue. :slight_smile: