Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9027329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:43:28+00:00 2026-06-16T06:43:28+00:00

For some research purpose I’ve build a small tanks game where you have 1

  • 0

For some research purpose I’ve build a small tanks game where you have 1 tank controlled by a player and one or more NPC tanks.

Now I want these NPC tanks to navigate through a field which they have no knowledge of. They can detect obstacles if they are in a certain range. If they detect those obstacles they should save them in a certain data construct that’s easy to query. So that they can take them in account when moving.

Now here is where I’m stuck : if my field would be a grid it would be quite easy for me, I would just save which tiles/nodes the obstacle is on.

But I haven’t really worked with a grid, my tanks just move forward a few pixels depending on their speed, so a tank can be located on any pixel combination, as well as the obstacles.

Now how would I handle this? Collision detection is out of scope.
Am I forced to use some kind of grid or waypoints ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T06:43:29+00:00Added an answer on June 16, 2026 at 6:43 am

    why not use a navigation mesh solution? seems like exactly what you’re looking for, a method for representing a domain for ai navigation with arbitrary polygonal obstacles.

    github is down at the moment, but according to this website (which is worth checking out, it’s an interesting Java implementation), this project has a python navigation mesh implementation.

    edit

    Based on your comments below, I think that a hierarchical representation is actually closer to the answer you are looking for. This article links to a paper describing how to abstract the pixel-by-pixel grid (with arbitrary shaped obstacles) into a node-edge graph for increased speed in navigation calculations. By incorporating this type of hierarchical representation with a dynamic navigation algorithm such as d* (see this answer for an overview of dynamic navigation algorithms), you should be able to implement a solution to your problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm doing some research and I'm playing with Apache Mahout 0.6 My purpose is
I have done some research and it really seems that implementing a transaction system
I've been doing some research about Swing in order to build a css editor
I am doing some research into geolocation in web pages. I have set up
I have been doing some research on test driven development and find it pretty
I have the following mxml (Omitted some parts for brevity purpose): <fx:Script> [Bindable] private
I already did some research and ended up with several autocomplete boxes which have
Upon some research I found two functions in MATLAB to do the task: cvpartition
I did some research and found that the only way to vertically center a
I am doing some research on developing thread safe applications. I know users can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.