See this demo first.
- the rocket at down-right side will try to hit the ship at top-left side, and it will dodge the rocks.
Document, plugin and sample capx included.
It uses Lennard-Jones potential formula - ( (A/r^n)-(B/r^m) ) for attracting or rejecting objects, like the demo above.
Here is another simple way to make car AI without any 3rd party plugins -
Demo ( capx ),
Demo2 ( capx )
Another demo - AI of Race car
AI of Race car v2
It seems that using attracting only and put them carefully could help race car moving smoothly. Some attracting point does not put well in this demo.
Add rejecting might be more smoothly I thought.