AI Driver Toolkit – Tutorials and Documentation

 

AI Driver Toolkit

Quick Start and Waypoint Editor

The second video tutorial shows how to use the waypoint editor.

You can watch it here: Quick Start and Waypoint Editor

How to give your vehicle artificial intelligence

The first video tutorial demonstrates how you can give your own vehicle some artificial intelligence.

Creating Racing Lines (V3.3)

Combining Edy’s Vehicly Physics and AI Driver Toolkit

The third video tutorial shows how to combine Edy’s Vehicly Physics and AI Driver Toolkit.

Documentation

You can find the documentation here

No application is perfect and every tool has bugs. So if you find problems or have some ideas to optimize this tool, you can contact me at hummelwalker[at]seifert-ing.de or Twitter @hummelwalker.

25 Replies to “AI Driver Toolkit – Tutorials and Documentation”

  1. Hi, in the version 3 of ai drivertool kit, and the integration whit edy physics apper the errors in Sidemark

    Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js(388,76): BCE0019: ‘AddSkidMark’ is not a member of ‘Skidmarks’.
    Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js(389,55): BCE0019: ‘Skid’ is not a member of ‘SoundController’.

    Thanks, my user in unity is hgmsocio@hotmail.com I buy by assetstore you product.

    R.

    Héctor

    1. Hi Héctor,

      please delete my dummy scripts “Skidmarks.js” and “SoundController.js”. You can find them in “AIDriverToolkit–>Scripts–>Additional”.

      Greetings,
      Carsten

  2. I purchased AI Driver Toolkit and I am experiencing several strange behaviors.

    I can drop a prefab Buggy into my scene and it moves forward, fine.
    Obstacle avoidance is checked in the buggy.
    But when I put a building in its way, it just stops at the building.
    If I put the Barrier Behavior script on the building, the Buggy now goes right through the building! (Trigger Collider is checked)

  3. The other problem I am having is, in the Demo scene included in the toolkit,
    the Buggys dont seem to follow the Waypoints.

    They seem to just want to go straight and then follow the line of the road side.

    If I delete all the current waypoints and create new ones, the buggy does not follow the waypoints immediately, they simply go straight ahead, then at a certain point the buggy will disappear and reappear on one of the waypoints, heading for the next waypoint.

  4. Hi Jon F.,
    at first thanks for buying 🙂

    To your first question: It could help to activate “ShowRaycast” and try new raycast parameters (OA…). What happens when you rotate your object a little bit around the Y-axes?

    To your second question: In the demo scene the vehicles have an active “use obstacle avoidance” parameter. So they don’t drive exactly from waypoint to waypoint. For more infos please have a look to the documentation 🙂 The disappering happens because the AI respawns on his last found waypoint. It sound that you have a problem with the right configuration. Please have a look to the documentation or the videos 🙂

    If you have more problems, please send me your project for testing!

    Greetings,
    Carsten

    1. If I turn off use obstacle avoidance, the buggy will follow the waypoints.
      If I turn obstacle avoidance on, the buggy will ignore the waypoints at first, then will start to appear and disappear at certain waypoints.

      You cannot use waypoints and obstacle avoidance together??

    1. Did you ever figure this out? I’m having the same issue with the demo scene. I need the vehicle to follow waypoints , as well as, avoid obstacles that may pop up (pedestrians, other vehicles, dogs, etc.).

      Quote:
      “You cannot use waypoints and obstacle avoidance together??”

      1. Hi Richard,

        “You cannot use waypoints and obstacle avoidance together??”

        You cannot combine these modes because of the following:
        The waypoints say “go left”, but there is an object. So my OA says right. What should I do? The middle? That’s an easy example. There are situations which are much more difficult.

        But you can switch between these two modes.

  5. Hello.
    It is the rye which bought A.I. Artificial Intelligence Driver ToolKit.
    If the “CenterOfMass” object of “AIDriver” is made into a minus value, a car will bound, but why is it?

    1. Hi Lai,

      that is a normal behaviour. Two objects with colliders cannot dive into each other. The Nearest position is to touch the surfaces. If you add one object a rigidbody and put them manually (or via code) into each other, the rigidbody object will be pushed away.

  6. Hi! I have my own car physics that I want to use this with.. would it be difficult to add this to an existing system? Is it a case of passing the horizontal / vertical inputs into my own scripts, or does it need more?

    Thanks!

  7. Hi Jeff,
    I need access to maxspeed, maxsteerangle and the the input variables for steering and acceleration.
    If you need help, you can contact me 🙂
    Greetings,
    Carsten

  8. Hello,
    I’ve imported and extracted the AI Driver Toolkit package into an existing project, but the new “Custom” Menu button doesn’t show up. Any ideas?

    1. I’m not a mobil developer. But some customers, who are developing for mobil, says that the toolkit works well. Only the player controller doesn’t works because of the different inputs.

  9. Hi,
    My game was working normally just my AI was not good, so after much searching I decided for your AI system.
    But to my surprise, after I imported your package nothing else worked.
    Any suggestions?

    Ps. I have many scripts CSharp and already moved to the plugins folder

    – Finished compile Library/ScriptAssemblies/Assembly-UnityScript.dll
    Assets/AIDriverToolkit/Example Scene/Scripts/SmoothFollow.js(32,9): BCE0005: Unknown identifier: ‘wantedRotationAngle’.

    (Filename: Assets/AIDriverToolkit/Example Scene/Scripts/SmoothFollow.js Line: 32)

    Assets/AIDriverToolkit/Example Scene/Scripts/SmoothFollow.js(33,9): BCE0005: Unknown identifier: ‘wantedHeight’.

    (Filename: Assets/AIDriverToolkit/Example Scene/Scripts/SmoothFollow.js Line: 33)

    Assets/AIDriverToolkit/Example Scene/Scripts/SmoothFollow.js(35,9): BCE0005: Unknown identifier: ‘currentRotationAngle’.

    (Filename: Assets/AIDriverToolkit/Example Scene/Scripts/SmoothFollow.js Line: 35)

    Assets/AIDriverToolkit/Example Scene/Scripts/SmoothFollow.js(36,9): BCE0005: Unknown identifier: ‘currentHeight’.

    (Filename: Assets/AIDriverToolkit/Example Scene/Scripts/SmoothFollow.js Line: 36)

    Assets/AIDriverToolkit/Example Scene/Scripts/SmoothFollow.js(39,9): BCE0005: Unknown identifier: ‘currentRotationAngle’.

    (Filename: Assets/AIDriverToolkit/Example Scene/Scripts/SmoothFollow.js Line: 39)

    Assets/AIDriverToolkit/Example Scene/Scripts/SmoothFollow.js(42,9): BCE0005: Unknown identifier: ‘currentHeight’.

    (Filename: Assets/AIDriverToolkit/Example Scene/Scripts/SmoothFollow.js Line: 42)

    Assets/AIDriverToolkit/Example Scene/Scripts/SmoothFollow.js(45,9): BCE0005: Unknown identifier: ‘currentRotation’.

    (Filename: Assets/AIDriverToolkit/Example Scene/Scripts/SmoothFollow.js Line: 45)

    Error: Analytics Event: 5(Compiler*BCE0005*Unknown identifier: ‘currentRotation’.)(1): skipped because it was sent more than once in 0.10 seconds
    Assets/AIDriverToolkit/Example Scene/Scripts/SmoothFollow.js(50,31): BCE0005: Unknown identifier: ‘currentRotation’.

    (Filename: Assets/AIDriverToolkit/Example Scene/Scripts/SmoothFollow.js Line: 50)

    Assets/AIDriverToolkit/Example Scene/Scripts/SmoothFollow.js(53,32): BCE0005: Unknown identifier: ‘currentHeight’.

    (Filename: Assets/AIDriverToolkit/Example Scene/Scripts/SmoothFollow.js Line: 53)

    Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js(79,9): BCE0005: Unknown identifier: ‘accelerationTimer’.

    (Filename: Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js Line: 79)

    Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js(177,9): BCE0005: Unknown identifier: ‘wheel’.

    (Filename: Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js Line: 177)

    Error: Analytics Event: 5(Compiler*BCE0005*Unknown identifier: ‘wheel’.)(1): skipped because it was sent more than once in 0.10 seconds
    Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js(178,9): BCE0005: Unknown identifier: ‘wheel’.

    (Filename: Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js Line: 178)

    Error: Analytics Event: 5(Compiler*BCE0005*Unknown identifier: ‘wheel’.)(1): skipped because it was sent more than once in 0.10 seconds
    Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js(180,9): BCE0005: Unknown identifier: ‘wheel’.

    (Filename: Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js Line: 180)

    Error: Analytics Event: 5(Compiler*BCE0005*Unknown identifier: ‘wheel’.)(1): skipped because it was sent more than once in 0.10 seconds
    Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js(181,9): BCE0005: Unknown identifier: ‘wheel’.

    (Filename: Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js Line: 181)

    Error: Analytics Event: 5(Compiler*BCE0005*Unknown identifier: ‘wheel’.)(1): skipped because it was sent more than once in 0.10 seconds
    Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js(183,23): BCE0005: Unknown identifier: ‘wheel’.

    (Filename: Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js Line: 183)

    Error: Analytics Event: 5(Compiler*BCE0005*Unknown identifier: ‘wheel’.)(1): skipped because it was sent more than once in 0.10 seconds
    Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js(184,9): BCE0005: Unknown identifier: ‘wheel’.

    (Filename: Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js Line: 184)

    Error: Analytics Event: 5(Compiler*BCE0005*Unknown identifier: ‘wheel’.)(1): skipped because it was sent more than once in 0.10 seconds
    Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js(188,17): BCE0005: Unknown identifier: ‘wheel’.

    (Filename: Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js Line: 188)

    Error: Analytics Event: 5(Compiler*BCE0005*Unknown identifier: ‘wheel’.)(1): skipped because it was sent more than once in 0.10 seconds
    Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js(197,17): BCE0005: Unknown identifier: ‘wheel’.

    (Filename: Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js Line: 197)

    Error: Analytics Event: 5(Compiler*BCE0005*Unknown identifier: ‘wheel’.)(1): skipped because it was sent more than once in 0.10 seconds
    Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js(199,16): BCE0005: Unknown identifier: ‘wheel’.

    (Filename: Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js Line: 199)

    Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js(388,76): BCE0019: ‘AddSkidMark’ is not a member of ‘Skidmarks’.

    (Filename: Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js Line: 388)

    Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js(389,55): BCE0019: ‘Skid’ is not a member of ‘SoundController’.

    (Filename: Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js Line: 389)

    Error: Analytics Event: 5(Compiler*BCE0019*’Skid’ is not a member of ‘SoundController’. )(1): skipped because it was sent more than once in 0.10 seconds
    Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js(394,55): BCE0019: ‘Skid’ is not a member of ‘SoundController’.

    (Filename: Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js Line: 394)

    Error: Analytics Event: 5(Compiler*BCE0019*’Skid’ is not a member of ‘SoundController’. )(1): skipped because it was sent more than once in 0.10 seconds
    Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js(412,39): BCE0019: ‘Skid’ is not a member of ‘SoundController’.

    (Filename: Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js Line: 412)

    Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js(497,17): BCE0005: Unknown identifier: ‘normPower’.

    (Filename: Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js Line: 497)

    Error: Analytics Event: 5(Compiler*BCE0005*Unknown identifier: ‘normPower’.)(1): skipped because it was sent more than once in 0.10 seconds
    Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js(498,80): BCE0005: Unknown identifier: ‘normPower’.

    (Filename: Assets/AIDriverToolkit/Scripts/Additional/Car-Modified.js Line: 498)

    1. Hello Arthur Carlos,

      thanks for buying. It looks like you have some dublicate scripts.

      Please delete the following scripts which you can find in a subfolder of the AIDriverToolkit root: SmoothFollow, Skidmarks, SoundController.

      Greetings,
      Carsten

  10. @Carsten Seifer or anyone who can answer. Before I dive in and by this kit. How can I or is their an iPhone version? I need to use tilt control to steer vehicle or have the option of button press to drive and steer. Thanks

    1. Hi Dre,

      the AI componts works for iPhone, but my player car controller is made for desktop/web games. So if you want to use both, you have to modify the inputs of the player car controller.

      Greetings,
      Carsten

      1. I am know good at this stuff. Me, just a lonely 3D artist trying to have some fun with your car kit. I can make world’s and fly through with cameras. I want to use a car. Could you make it compatible out the box for iPhone?

  11. Hellow author i have following error i have purched ur ai driver toolkit and when i run it does not shown in toolbar of unity 3d i have installed unity 3d 3.5
    please help and give me replay as soon as u can i am making racing game

Leave a Reply