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"

Bug in GetActorFeetLocation (ignores Origin)

Hi Epic,

I was having problems with my vehicle driving AI and noticed that the pathfinding failed. Hunting the bug down led me to UNavMovementComponent::GetActorFeetLocation, which is currently ignoring the Origin of the Bounding box. As a result, a vehicle setup like the VehicleGame example (where the mesh is completely above Z=0) will have GetActorFeetLocation returning values that are 1/2 of the Z bounding box size below the ground. With the default MinAgentHalfHeightPct multiplier of 1.05%, that can lead to cases where UPathFollowingComponent::HasReachedInternal erroneously returns false, although the vehicle is exactly on top of the goal location. The fix is to replace UpdatedComponent->Bounds.BoxExtent.Z with (UpdatedComponent->Bounds.BoxExtent.Z + UpdatedComponent->Bounds.Origin.Z) in NavMovementComponent.h

My workaround for now is GetPathFollowingComponent()->SetPreciseReachThreshold(1.1f, 2.05f), which just increases MinAgentHalfHeightPct to make the tolerance greater than the GetActorFeetLocation error.

Cheers, Hajo

Product Version: UE Github Master branch
Tags:
more ▼

asked Sep 09 '17 at 10:53 PM in Bug Reports

avatar image

fxtentacle
96 3 9

(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