Jump to content
  • Advertisement
Sign in to follow this  

basic memory and use collision avoision

This topic is 5014 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i have a small bot on the screen and he is in a room. he can detect when he is about to hit a wall and take action to avoid it. i have just added an array that stores any points that the bot was about to hit. my idea was that for each move the bot would check its heading , a few moves in front of it and see if it is going to hit any of the points stored in its memory , and if so, it will turn left or right to avoid. its all based on line intersection and cartesian points.im having a few problems though. if the robot gets into a tight corner, and is detecting a few moves in front, and sees it is going to collide with a wall, takes corrective action, but again finds collision is imminent, it kind of gets stuck. can anyone find any other potential flaws, and or advise me on thier views. bear in mind that i am not getting into deep AI, just basic memory and avoiding of collision is all im after. thanks all

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!