AI Car Asset ?

Hello

I am currently working on an AI Car for city scenes, and I thought there are maybe some people who are interested in an AI Script Asset for Cars? So my question would be if it’s so, and what “skills” should this AI have ?

Sorry, if my english isn’t as good as it should be :slight_smile:

// Edit
Here’s the newest Webplayer

https://dl.dropboxusercontent.com/u/157743692/Update%202/AICarAsset.html

simply put a waypoint, a decent AI script, in an empty game object in your scene.

I am not sure if I get your answer, did you mean that it isn’t needed because it’s too simple, or did you mean there should only be a simple driving system ?

no. what i mean, is that you only got to get the car model in scene and add the following necessary scripts and objects (i wont tell you the code though):
empty game objects parented to the waypoint script and copy those gameobject throughout your city streets,
add the waypoint script to the car, and voila! there’s your first AI car. Skills, hmm. I think AI cars should behave like
actual cars.

and there’s no need of a driving system. this AI car you mention were not controlled by the player are they?

No, they will be controlled by the “Computer” so they’re driving by themselve.

That’s nearly my idea, you would only have to place simple cubes or whatever along the street, put them in a parent object and it’s finish.

I meaned with skills something like Car features. In citys you want to have many cars I think, so should something like passing cars be included? You would have access to the acceleration, top speed etc. in the inspector so you could make some cars faster, some slower, and if a fast car is behind a slow car the fast car would try to pass the slow.
That’s only one idea I am trying currently(Waypoint System is already set up)
Is that something you would mean with behave like real cars?

https://dl.dropboxusercontent.com/u/157743692/WebPlayer1/AI%20Car%20Asset%20Prototyp.html

There you can see a realy early prototyp, that’s something I am actually working on, but at the moment with static Objects, so the other cars which get passed aren’t moving yet.

Sorry for the bad graphics, textures and Models come from Unity, I have no experience in modelling.

yeah. simply like that. ‘fast car is behind a slow car the fast car would try to pass the slow’ thing. but you have to deal with many collider and waypoints to do this.

yes, there will be raycasts which detect how fast the front car is, and if it’s slow enough dynamic waypoints will be instantiated and the car behind will accelerate a bit, so it don’t crash with the front car. I am already trying to translate it in code.

yeah. that’s what i am talking about. good ai. keep up!

I remembered this old saying ‘when there’s an AI there’s a large chunk of collider+scripts’

thanks :slight_smile:
Ohh yes, there are many options which could let the AI crash if you don’t check everything, and to check everything you need many colliders :wink:

yeah. you’re welcome.

That would be great. Well what I think would be needed is some kind of traffic light system, a system for different intersections (so that they kind of follow the traffic rules), a system to manage multiple lanes (for highways or so) and it would be great if the system could kind of just give out a value for steering (between -1 and 1 or something like that) and the same for the throttle/brake, so that you could use the system on your own car-system. Also an optimization for mobile would be great.

The way you generate the passing script seems great :wink:

A traffic system is another idea, maybe controlled by triggers so you just need to set up a simple collider in front of your traffic light or something else and the AI will understand. That will also be included.
Acceleration, top speed, braketorque, steering etc. will be changeable in the inspector.
But I am not sure about mobil devices, I have to say, I haven’t ever codet for mobil devices so that could be a problem, but I will try when the most things are completed.

Well if you want I could share my experience with mobile devices with you. How long do you think it’s going to take you to finish the package?

Well, that sounds good.

I am not sure, this is my first asset… I will have to set up the complete functional traffic system, passing cars, detect civilans, traffic lights…
Maybe about a month, but I am really not sure, it will depend on the other things I have to do, if I can spend much time the next month it should be finished quickly, if not, it wont :lol:

Sounds great. Do you already have an idea for a price tag and what language are you programming in?
I would be pleased to become beta tester if you need :smile:

I don’t know yet, some time ago I’ve seen a asset which was kind like this, and the price was about 90$ !
Way too much I think, I would choose something like 20 up to max. 40$.
But First I will have to check if selling would be profitable… Unity gets 30% and I am in Germany too, so I would have to exchange the Dollars to Euros…

I am Programming in C#, a few beta testers will be welcome, but there is still much work to do until I can choose some beta tester.

You’re german too?

I can’t tell you for the profit of assets, but I personally think that the price tag depends on the asset. So for a great asset a 90$ price tag might be reasonable.