using UnityEngine;
using System.Collections;

public class ConstantMove : MonoBehaviour 
{

	public float valorX;
	public float valorY;
	public float valorZ;
	public float speedX;
	public float speedY;
	public float speedZ;

	
	void Update () 
	{

		ConstantMoveOfAnObject ();
	}


	public void ConstantMoveOfAnObject()
	{

		transform.Translate(valorX * speedX * Time.deltaTime, valorY * speedY * Time.deltaTime, valorZ * speedZ * Time.deltaTime, Space.World);  // Movimiento relativo al mundo en general

		//transform.Translate(valorX * speedX * Time.deltaTime, valorY * speedY * Time.deltaTime, valorZ * speedZ * Time.deltaTime, Camera.main.transform);  // Movimiento relativo al transform de la MainCamera

		//transform.Translate(valorX * speedX * Time.deltaTime, valorY * speedY * Time.deltaTime, valorZ * speedZ * Time.deltaTime);  // Movimiento relativo a objeto en si mismo, sirve para rotacion cuando usas valores en x & y

		//transform.Translate(Vector3.up * Time.deltaTime, Camera.main.transform);
		
		//transform.Translate(0, 0, Time.deltaTime);
		//transform.Translate(0, Time.deltaTime, 0, Space.World);
		
		//transform.Translate(Vector3.forward * Time.deltaTime);
		//transform.Translate(Vector3.up * Time.deltaTime, Space.World);
	}


}










