Tuesday, 17 May 2011

More Car AI

Some more car AI using Unity 3D using 1 waypoint for each corner.

this is the same as the previous video but using textured roads rather than those stupid cylinders.

A bit of trouble with the random start waypoints causing crashes - possible solution: spawn cars next to first destination

Some wide cornering, maybe due to time taken to find new destination - possible solution: pre-plan next dest when a bit further away, but still switch at the same point.

I can also speed this up by letting all waypoints know their neighbours once at the beginning of the script, rather than searching for them each time a car comes to them.

No comments:

Post a Comment