Saturday, January 28, 2012

Kart Racer- Winter Track Aesthetics + Yet Even Still More AI

First off [although not nearly as important], I've been experimenting with a few lighting concepts for the winter track. As you can see, I overhauled the lighting and skybox to a dusk setting [rather than mid-afternoon]. I really love the mood this sets, and it really helps the track stand out.














As for the AI, I've made some progress- the AI kart actually goes all the way around the track. Yep, that's right. Full 360.

In order to do it, I had to set up three targets around the track. The kart tracks to the first target and switches to the next once it gets within a certain distance. It will loop endlessly between the three targets, making it go all the way around the track.

However, the way in which I approached this wasn't my preferred method. I wanted to have just one steering actuator that would update the target automatically, but it always switched back to the previous target [and I couldn't figure out a system to prevent this]. Instead, I tried a state system in which it will switch to a new steering actuator in an independent state, thus [hopefully] preventing it from turning around. This eats up considerably more logic, though.

The system isn't perfect, as sometimes the kart won't think it reached the target and will turn back. It happens sporadically, so it's hard to tell exactly what's happening and how to fix it. Also, the system isn't versatile at all. I have the feeling that integrating this into the other tracks will be a nightmare. I don't have much time on my hands though, so it will have to do.

Also, I'm planning on getting screen capture software some time in the near future. This way I can actually post some footage of the AI in action. Just a heads up.

No comments:

Post a Comment