x

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"

How to make an Actor follow a road?

I would like to create a road using the spline tool and then setup an actor to follow that road. I need some help getting started here

1) How can I create a path description from the spline that can be used by some path following AI? I will need a better resolution than just the spline control points e.g. in curves, is that possible?

2) What are the API classes/components that I have to use that generated path for an actor to follow it?

Thanks!

Product Version: Not Selected
Tags:
more ▼

asked Jun 03 '14 at 01:17 PM in C++ Programming

avatar image

Rastar
156 16 22 24

avatar image MieszkoZ STAFF Jun 03 '14 at 09:25 PM

Do you really need that Actor to be AI? Maybe you should consider using Matinee?

avatar image Rastar Jun 04 '14 at 05:29 AM

Well, I actually want the player (first-person) to follow the road. But actually, Matinee might be a solution in my specific case, I'll have a look at that. Would still be interested if there are classes etc already in place for something like this.

avatar image Rastar Jun 04 '14 at 07:11 AM

Now I'm completely confused :-) and need some advice. I have to uses for that path following logic. My game is some sort of road racing in a first person perspective where 1) The player will ride along the road, but won't steer and just control the velocity. 2) (Later on) competitors will participate in the race, of course have to follow the road as well and do collision avoidance (with the player still not steering).

Would I better start off using Matinee or implement (or hopefully reuse existing) some path AI using Blueprint/C++?

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

0 answers: sort voted first
Be the first one to answer this question
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