Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

AI Logic in vehicles

Helllo.....Ok so I know that moveTO will not work with wheeledvehicles. I want to ask that how can i define AI vehicle logic like hitting the other cars when AI controlled vehicle sees it and following logic. Here are two more questions which i want ask about AI vehicle logic.

  1. Can I use AI perception and other AI components with wheelVehicles ?

  2. If moveTo and other AI logics can not be used with wheelVehicles can I replace the Skeletal Mesh with Car Mesh and then can I use all predefined logics?

If u have any tutorials about AI Vehicles kindly provide me.Thanks

Product Version: UE 4.14
more ▼

asked Jan 22 '17 at 04:31 PM in Blueprint Scripting

avatar image

28 2 9 6

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Ai only doesn't work with the wheeledVehicle Component, as you already found out yourself.

But we figuered out, what we really did need: A "MoveTo" you also be done by checking both locations and the forward vector, do a bit of math and you can just set the throttle and steering input of the car. For good results, you need more than just "a bit if math".

The other components did work, but not perfectly. After a "teleport" ie the mesh was teleported, but the senses weren't. But you can do that by a cone trace (or something similar )

So my conclusion is, that AI doesn't work with your cars, but you can most things without it.

more ▼

answered Jan 23 '17 at 08:28 AM

avatar image

530 22 10 35

avatar image acetate Jan 25 '17 at 03:57 AM

Thanks for replying..can we use blackboard and behavior trees with wheeedvehicles or not?

avatar image learningOver Jan 25 '17 at 07:42 AM

Of course you can. But the current set of nodes has no facility to provide the inputs the vehicle needs to move.

You use the tree and blackboard to run logic and either prepare new nodes to use in the behavior tree or write the logic elsewhere.

Vehicle programming is simply planning and recognition. So you plan your route around things you recognize.

You can query the path system to generate points to set as destinations, you then determine your forward vector and the angle to your target.

First come up with a plan on what you want the vehicle to achieve, share that and it would be easier to help figure out a good approach.

avatar image acetate Jan 25 '17 at 09:05 AM

thanks learningOver....another thing I want to ask that is this possible that I use vehicle mesh for the character class like i dont use the wheelvehicle class but instead of this i use chatacter class and i upload vehicle mesh in it.using this i can also use all the features which are not available in wheelvehicle class.

avatar image Speckulous Feb 07 '17 at 02:58 PM

I think you can somehow do this, but this is so damn much work, your car couldn't 'drive' with gears and the wrong physics would be applied, you would have to basically change the whole animationBP, before you do it that way, it's easier to go without AI logic

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question