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"

AI Perception History

I have managed to get basic AI perception working fine. however, when running the ai debug I noticed that a perceived actor's last known location was stored along with the age of the stimulus. I couldn't find where the actor's last known location and age is stored, as the documentation is still not the best on AI Perception. Does anyone know where this is stored on the component?

Product Version: UE 4.18
Tags:
more ▼

asked Feb 04 '18 at 07:35 PM in C++ Programming

avatar image

Cabewz
60 2 5 6

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

1 answer: sort voted first

Hey.

Actually, reading engine's code is way better and faster than using the documentation. :)

UAIPerceptionComponent contains PerceptualData private property. It's a map AActor -> FActorPerceptionInfo. The values within this map, have GetLastStimulusLocation function that reads this information from internal array of elements of type FAIStimulus.

Hope this helps.

more ▼

answered Mar 08 '18 at 09:23 PM

avatar image

Atheist91
1.2k 18 23 39

avatar image Cabewz Mar 08 '18 at 09:28 PM

Thanks, this is what I ended up using. I forgot to post that I had figured it out from the engine code like you mentioned.

(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