Game
Full Contact Racing
7 years ago

AI update


Hi all,

Since I first released the FCR demo the AI has been very basic.
The cars basically just follow the waypoints set up to define the layout of the circuit to move around the track.
This results in the vehicles making their way around on mostly the same path every lap, making the same mistakes each lap and it’s not a very convincing solution.

I sat down yesterday and began re-writing the AI system to make it more realistic.
I still use waypoints but instead of the cars following the path rigidly they now follow a ‘rabbit’ object which follows the waypoints.

Here’s a gif to help me better explain.
the Rabbit is rendered in front of the car as a sphere.

5d0abc68b36ff.gif

Here’s how it looks in the game.

5d0abc6ee25f5.gif

The footage above was captured on a work in progress circuit which will make it into the game for the next update.

The rabbit varies it’s distance from the car depending on the cars speed.
If the rabbit is too far to either side of the car, the car will drift to turn tighter towards the rabbit object.

The system isn’t perfect and it requires a lot of tweaking but I think this looks more convincing already, cars now make mistakes and don’t follow the same line around the track.
I can easily add more randomisation to the AI vehicles by factoring in aggression and driver skill values.

The next thing to do is to add sensors to the vehicle so I can program in local avoidance, AI cars tipping other cars in and smashing into them on purpose.

That’s all for now, I’ll be back soon with more progress about new vehicles.

Paul.



0 comments

Loading...

Next up

New update - Race Mode

Multiplayer is live!!

This Satuday we invite to watch another #speedpainting of our artist Daniel Faiad.

How great is this scene of #Pecaminosa?

#ScreenShotSaturday | #IndieDev | #DigitalArt

Bandana Dee the Dream Friend

I have added rewards for quests so that villagers can give you something in return for your hard work helping them. 🥳

I want to know - what's your favourite quest reward?

I-Buki

Mio-Da!

Ibuki Mioda!

Rockin the Guitar, an Axe like Guitar I made for my Uni project

An infected room from the second part of Cybel ! Are you up for some cleansing?

Coming Soon...

Some time ago, we posted a screenshot of the Mexico level. A curiosity about it is that, like some other scenarios of the game, it was inspired by a real landscape, The Basaltic Prisms of Santa María Regla. It is one of the natural wonders of the country!