I would like to create a basic motionmatching setup for an NPC.
So far I got working:
The npc follows the player when the game starts.
The motionmatching part appears to not work entirely. It basically plays whatever is the base output pose (in this case idle) while sliding towards the player.
If I remove the idle pose from the pose search database it plays whatever is the topmost output pose. I am not sure where the error is:
Here is a screenshot of the trajectory debug lines when the character approaches me. When I circle it, the front area of the prediction turns into a blue star (lines fanning out in a 180 degree angle).
Hi black_cat. I am currently designing AI Enemy in my project.
What was your approach in your project for creating the NPC ?
did you start a Character from scratch or did you create a Child from the existing CBP_Sandbox character ?
I chose the latter because it was just easier for me to reuse the code already existing in the CBP_Sandbox blueprint.
Then, I attached my AIController to it (I made my own) and its working great. No issues with the animations so far.
Give this video a look. It may not be 100% what you want to do, but I found it useful in the sense of just setting up a basic NPC character using the GAPS project. Maybe there is something in here that may help you.