Jump to content
  • Advertisement

Thunderzone

Member
  • Content Count

    7
  • Joined

  • Last visited

Community Reputation

106 Neutral

About Thunderzone

  • Rank
    Newbie
  1. Thunderzone

    Racing AI with time constraint

    Hey guys, i tried to prototype this but it looks to unrealistic so far, it looks like we are going go abandon this idea. Thank you all.
  2. Thunderzone

    Racing AI with time constraint

    Hi jeffery, thank you for showing up on this thread. But it looks like you didn't understand my problem. This is not a classical human vs AI race, and I am not allowed to disclose specific details so I simplified my problem like this: What do you think would be a good method for implementing a vehicle AI that has a feature that it can always reach checkpoints on predetermined times.
  3. Thunderzone

    Racing AI with time constraint

    Thank you Dave for a prompt reply. It is nice that you pointed out this situation where a player could restrict intentionally an AI car, and then it would accelerate unrealistically, but this situation is prohibited by design. Other situation is where other AI cars restrict each other unintentionally, and this is a whole other set of problems, and I still havent wrapped my head around it fully. My first thought are that I should imeplement some kind of master mind AI that would look after car agents (like a flock) and would prohibit them from getting into dangerous situations. I would also tweak the physics layer when necessary to avoid sideslips off track or something similar. This would yield unrealistic results sometimes (but rarely) but it's a tradeoff we have to pay. But so far my first question remains, before I start to work on a full race. Let's just say we have one car and time constraints. I have to figure this out before I go to vacation . I will try to implement something by tommorow and I wil report.
  4. Hello community I have an atypical question for you. I am working on a car AI for a racing game. I am not allowed to disclose specific details, so don't try to find logic in next sentence . We want a mod where AI would always reach the goal at a particular time ie. first checkpoint in 15 sec, second in 10 sec etc. Actually that describes the problem pretty well. Let's say we have only one car, realistic physics engine, and we want our AI to be able to drive to checkpoints for the given time. Note that "cheating" the pysics is allowed. So far we have that drives around the track aggresively and really fast. I was thinking about implementing a pid controller for car speed, where my control variable would be projected time (from current acceleration and velocity) to reach the checkpoint, and tweak the throttle accordingly. However I am unsure how exactly I would tweak the throttle, and what other factors should I look after, or even if this method would give good passing times (tolerated margin of error would be +-0.5sec). What do you think of my idea, or do you have other ideas for this particular problem? Some other guidances would be helpful also, like general vehicle AI tips and tricks and/or books, because I am really inexperienced in this field, yet I have a really responsible job of implementing this stuff, and I have done a good job so far .
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!