Search Unity

Infinite Gameplay Terrain Question

Discussion in 'Scripting' started by paco, Apr 16, 2011.

  1. paco

    paco

    Guest

    Joined:
    Oct 28, 2010
    Posts:
    20
    hey,

    i'm working on infinite gameplay.
    for this i wanted/need to move my terrain dynamically.
    but this is not working.

    (nothing happend. the code works with every other asset, just not with terrain)

    PHP:
    var obj;

    function 
    Awake() {
        
    obj gameObject.FindWithTag"obj" );
    }

    function 
    FixedUpdate () {
        
        if( 
    obj ) {
            
    transform.position.obj.transform.position.500;
        }
    }

    With a Plane this works fine!
    Problem is the Standard Grass Texture does not look as nice on a Plane like on the Terrain.
    (I don't need the rest of the features of a Terrain actually..)

    Does somebody have an idea how to make this work?
    (Or what I can do to make the Texture look better on a big plane?)

    thx
    cheers