1 / 8

Car AI System

Car AI System. Goals Design Implementation Improvements. AI: Goals. Have cars follow course AI drivers constrained by car performance Random element to make AI race against each other. *. 1. Node. NodeList. CarAI. name pos radius maxspeed next. first last current. car list

signe-lyons
Download Presentation

Car AI System

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Car AI System Goals Design Implementation Improvements

  2. AI: Goals • Have cars follow course • AI drivers constrained by car performance • Random element to make AI race against each other

  3. * 1 Node NodeList CarAI name pos radius maxspeed next first last current car list mytimer NodeList( ) InsertNode(node) CheckCurrent(car) Node(name,pos,maxspeed) SetPointer(node) Check( ) GetGoal( ) CarAI(car) Compute( ) AI: Design

  4. AI: Implementation • Waypoint navigation • Configurable waypoint speeds • Randomized use of waypoint speeds • Cyclic waypoint graph • Main AI loop controlled by Timer, easy to adjust the CPU time given to AI system

  5. wp1 wp1 dir 1 2 wp1 wp1 dir dir 3 4 AI: Implementation

  6. AI: Improvements • Layered AI system • Use appropriate method for situation • Strategy based AI system • Event driven AI strategy chooser • Based on waypoints • AI chosen waypoint determines speed factor, not random factor • May even use Fuzzy Logic to choose behavior, if more variables are assigned to each car

  7. AI: Improvements EventDriven CarAI ConcreteAI WayPoints Chaser Blocker

  8. Track Class • Encapsulate all track specific parameters in a class • Could contain: track model, start grid positions, waypoints. • Track implementations should inherit from TrackBase class • Easy to change tracks using TrackBase interface

More Related