Presentation on theme: "Car AI System Goals Design Implementation Improvements."— Presentation transcript:
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
AI: Design Node name pos radius maxspeed next Node(name,pos,maxspe ed) SetPointer(node) Check( ) GetGoal( ) NodeList first last current NodeList( ) InsertNode(node) CheckCurrent(car) CarAI car list mytimer CarAI(car) Compute( ) *1
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
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
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
Your consent to our cookies if you continue to use this website.