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"

MoveToLocation - shortest path

Hey, I am using MoveToLocation function (By AIController) to move the character from point to point. When the target point is in unreachable position and character does not move. How can I tell the character to get closer as it can to the reach point?

alt text

When I click the house, the target point sets to the surface (Not the roof). The Character can not reach the target point because it is inside the house. How can I tell the character to get closer as it can to the target point?

Product Version: Not Selected
more ▼

asked May 04 '15 at 05:02 PM in C++ Programming

avatar image

82 9 15 26

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

1 answer: sort voted first

By default it should do what you need, provided it was possible to project destination location to navmesh. I bet in this case the clicked location is too far above navmesh and projection fails. You can modify the default projection extend via project settings, Navigation System -> Supported Agents.

However, this would be a short-sighted fix. The proper fix would be to detect what you actually clicked and send AI to that something's location.



more ▼

answered May 04 '15 at 07:28 PM

avatar image

MieszkoZ STAFF
7.3k 223 56 410

(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