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"

[Closed] Problems with navigation system?

Hi!

I'm having three problems moving a pawn (unit) using an AIController. In a custom PlayerController I call GetHitResultUnderCursor(ECC_Pawn, false, Hit); to raycast and extract the position the player clicked on. Then I use AAIController::MoveToLocation(location, 0.1f, false, true, false, false); in the AIController to move the unit. The problems are that:

  1. The player pawn is stopping a small distance before it reaches it's final destination, even though I have set the acceptance radius to a small value and placed the mesh in the origo of the blueprint.

  2. If I press close and intense in front of the pawn when still moving, the pawn often starts to move towards the origo of the world/map. I check that the raycast actually did hit something.

  3. The RVO avoidance seems to function a bit strange and makes the pawns move very slowly in a wobbly strange path when near other pawns. You can also see some strafing even though strafing is supposed to be turned off and set to false in the move method call.

I have a video that shows problem 1 and 2 here **video link**.

I have a video that shows problem 3 here **video link**.

Issue 1 and 2 also exists in the Top Down template, both BP and CPP version. See demonstration here **video link**.

===================================================================================

Issue 1 is solved by setting the third parameter to false, kinda obvious when you actually read the parameter name.

AAIController::MoveToLocation(location, 0.1f, false, true, false, false);

Issue 2 and 3 (especially 2) looks like bugs in my opinion.

Product Version: Not Selected
Tags:
more ▼

asked May 18 '14 at 05:29 PM in C++ Programming

avatar image

undercover
838 123 111 138

avatar image Rama May 21 '14 at 08:18 AM

Very nicely documented, the videos really help a lot. (might want to bold the links due to AnswerHub coloring issues)

I hope Epic figures this out with you!

:)

Rama

avatar image undercover May 21 '14 at 08:38 AM

Have made them bold now, always good with some feedback. Thank you.

avatar image Chris528 May 21 '14 at 09:47 AM

What class are you using for your units?

avatar image undercover May 22 '14 at 08:24 AM

It's possible to reproduce issue 2 by creating a new Top Down template. If you add some other pawns (units) you can also turn on RVO Avoidance to reproduce issue 3.

avatar image Chris528 May 21 '14 at 04:07 PM

From where are you calling AAIController::MoveToLocation?

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

The question has been closed May 27 '14 at 07:25 PM by Tim Hobson for the following reason:

https://answers.unrealengine.com/questions/45341/problem-with-rts-navigation-system.html


1 answer: sort voted first

I'm going to close this thread and have provided the link to the duplicate topic that is being handled.

https://answers.unrealengine.com/questions/48320/bug-with-navigation-system.html#answer-48986

Thank you!

Tim

more ▼

answered May 27 '14 at 07:24 PM

avatar image

Tim Hobson ♦♦ STAFF
48.9k 887 101 876

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

Follow this question

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

Answers to this question