allowing bot to detect objects in its field of vision

fguihen

Well-known member
Joined
Nov 10, 2003
Messages
248
Location
Eire
hi. i have a bot that is moving around between obstacles and other bots. has anyone got an algorithm or ideas on how to do this. the walls and objects are just red rectangles. the bots are just moving yellow circles. i cant do something to detect difference in color, as this requires objects to be touching, but i want my bot to avoid objects before it gets near t
 
Iceplug said:
http://www.computerhelp.forum/showthread.php?t=89117
Maybe I dont know exactly what you mean by "avoid objects before it gets near t", but preventing the bot from walking past walls is usually enough.

what i mean by avoining objects is like when your walking across a room, and theres a table in your way , when you get within a certain distance of it you start to move either left or right to avoid bumbing into the table, but your still avoiding other objects such as people as you avoid the table. i want to be able to avoid walls, objects and other people by continually adjusting my position left or right. does this make it clearer? its a bit hard to describe
 
Sounds like you want do something like pathfinding.
You may want to look up a pathfinding algorithm on the net, like A*. I havent looked at it yet, but this is probably what you want.
 
Back
Top