Hi guys i am doin a 2d project (to start to learn to program a little) and i run to this problem
as i say i dont know much about unity and programing so any help would be use full
what i want to do with the tranform.translate(vector3.right); is send fliying a cube to the right
public class PlayerController : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
transform.position = new Vector3(0, 0, 0);
}
// Update is called once per frame
void Update(){
transform.translate(Vector3.right);
}
}