I am trying to make a terrain in Unity move, but im having trouble. Here's the code i have.
using UnityEngine;
using System.Collections;
public class NewScript : MonoBehaviour {
Camera camera;
Transform Terrain;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
Terrain.Translate(new Vector3(500, 500 ,500));
}
}
now i would suspect that the terrain would just keep translating its position but it doesnt budge. How do i make a terrain move, or if you cant, how can i make the camera move and preferably with input. I am familiar with the XNA framework, is there a way to implement the input from XNA into unity?