Results 1 to 3 of 3
  1. #1
    Join Date
    May 2011
    Location
    Denmark
    Posts
    25

    Lee's Terrain R&D, Session 2, Pt. 5 - position issue.

    I have been looking around to see what this issue may be. The position symbol cannot be resolved, and I was curious if this is something that has been added to somewhere that I may have missed?

    http://img24.imageshack.us/img24/3402/questionrk.jpg

  2. #2
    Join Date
    Dec 2009
    Location
    Atlantis
    Posts
    167
    Hi
    Your missing .transform for both the x and z position.

    the correct code is,

    get
    {
    return new Vector2(TP_Controller.Instance.transform.position. x / TerrainPatch.PatchSize),
    (TP_Controller.Instance.transform.position.z / TerrainPatch.PatchSize);
    }

  3. #3
    Join Date
    May 2011
    Location
    Denmark
    Posts
    25
    Quote Originally Posted by blacklisted View Post
    Hi
    Your missing .transform for both the x and z position.

    the correct code is,

    get
    {
    return new Vector2(TP_Controller.Instance.transform.position. x / TerrainPatch.PatchSize),
    (TP_Controller.Instance.transform.position.z / TerrainPatch.PatchSize);
    }
    I must have been very tired at the time. Thank you sir.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •