ObstacleAvoidance_JackFoster
A simulation of obstacle avoidance algorithms featuring
Raycasting - 2 whiskers at 30 and -30 degrees, these are always active as a backup, though their main purpose is to help the agents dodge the non moving obstacles
Collision Prediction - This is used for both agents to dodge moving obstacles
Cone Collision - This is used to detect the other agent. The cone area is based on the raycast whiskers. The cop uses a forward cone to detect the robber, when he sees him he increases his speed. The robber uses a cone behind him, when he detects the cop then he also increases his speed.
The cop pursues the robber, the robber evades the cop. If the cop catches the robber they both stop.
All behavior is handled in the bot script, except for the moving obstacles move script, which is handled in the wall script.
Status | Released |
Category | Other |
Platforms | HTML5 |
Author | JohnCFoster |
Made with | Unity |
Leave a comment
Log in with itch.io to leave a comment.