Results 1 to 6 of 6

Thread: Find nearest field.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    you can go through the entire map field by field and check the distance to the point, this way finding the smallest distance and therefore the closest field.
    another way would be a very simplified version of path finding where you trace starting from the initial point in all directions until you reach the field of the type you are looking for.
    the first way is very easy to code. the second way is a bit more difficult but it can provide a path from the initial point to the field. let me know if you need some help with the code.

  2. #2
    You can put all your buildings/whatever in a list, then go through the items to find what you want.
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  3. #3
    Sounds like a distance transform to me.

    Do you want to know distances around objects or as the bird flies?

Bookmarks

Posting Permissions

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