How to rotate a bone in sync with AI perception ?


The AI character head rotates in 360 degree while rest of the body is static, I want that once the player crosses pink boundary, the enemy should start looking at it, and if player moves within pink circle without crossing green circle the enemy should look at the player rotating its head in direction to player location, once player crosses green circle enemy start running towards it. So is there a way to rotate head bone in sync with data from AI perception ? I have made the “perception lines” rotate with head using C++. Using UE4.24.3 for Android development.

Hey @Ashutosh_Sharma!

This thread achieved the same effect you are trying to pull off with AIPerception, check it out!:

I hope the above provides the solution you need!

1 Like