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"

Why doesn't AI work with WheeledVehicle


TL;DR: how to make BTTask with call AI Move To work with WheeledVehicle?

I am trying to implement simple car AI with only one behavior: move to a waypoint, reach it, then move to the next, and so on. I have implemented a custom pathfinding in c++ to reach the goal changing inputs of the controlled car, but this does not satisfy my goals due to important thing: I need to add some avoidance fot cars. I've tried RVOAvoidance, btw, but it seems not able to work both with custom moves (via SetThrottleInput and SetSteeringInput). Unfortunatelly, RVOAvoidance is not an option, becaise it doesn't care about navmesh and world meshes, and the cars are, basically, won't move.

I've heard about DetourCrowds, so, to make it work I desired to remove the old controller, and make a new one, implementing the behavior in blueprints (inherited from a C++ class with UCrowdFollowingComponent), using BehaviorTrees, hoping it will work with 'classic' scheme.

Now, I am stuck in the stage where the car need to be moved. When car was controlled by controller calling SetThrottleInput the control was fine

alt text

But my car won't move using BTTask, calling AI Move To:

alt text

Inbefore: callings are correct, the values are correct and behavior tree is correct.

Also, if I am doing wrong, is there an AI Move To analog for cars?

The question is, how to make it work correctly?


How to make my old controller work with DetourCrowds using SetThrottleInput and SetSteeringInput?

Thanks in advance.

Product Version: Not Selected
1.png (58.6 kB)
2.png (122.1 kB)
more ▼

asked Jan 29 '15 at 03:02 PM in Blueprint Scripting

avatar image

1 1 3 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

You cannot use navmesh and the current AI functions with vehicles right now. They work with humanoid characters, so you'll have to make your own vehicle AI with custom made tasks, distance, speed, obstruction detections, etc.

Here you can find a simple car AI project provided by Peter and improve upon that. https://forums.unrealengine.com/showthread.php?25073-UPDATED-12-20-A-I-Templates-Bot-Car-amp-Flying-AI

more ▼

answered Jan 29 '15 at 07:12 PM

avatar image

16.8k 671 167 677

avatar image desertkun Jan 29 '15 at 08:37 PM

Thanks. So, there is no other way except implement custom AI pathfinding manually?

avatar image Jacky Jan 29 '15 at 09:51 PM

Nope, not that i know of(I have been trying to make my own vehicle AI for a while now as well) It will be added eventually i hope, but not in the near future.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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