# How to rotate AIPerception or attach it to socket?

**URL:** <https://forums.unrealengine.com/t/how-to-rotate-aiperception-or-attach-it-to-socket/323838>\
**Category:** AI\
**Tags:** how-would-you-do-it, ai-controller, unreal-engine, Blueprint, question\
**Created:** [July 2, 2015, 1:56pm UTC](https://forums.unrealengine.com/t/how-to-rotate-aiperception-or-attach-it-to-socket/323838 "2015-07-02T13:56:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SaOk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SaOk](https://forums.unrealengine.com/u/SaOk)\
**Post date:** [July 2, 2015, 1:56pm UTC](https://forums.unrealengine.com/t/how-to-rotate-aiperception-or-attach-it-to-socket/323838/1 "2015-07-02T13:56:15Z")

</div>

I would need the AI controller’s sight sense follow actor’s head rotation or variable value (instead of default body), but cant find away rotate it. AiPerception in controller also have parent socket but cant write into it. Is there way to do this? 🙂

---

<div class="post-metadata">

**Author:** ![Abeysaurus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Abeysaurus](https://forums.unrealengine.com/u/Abeysaurus)\
**Post date:** [January 23, 2018, 9:58pm UTC](https://forums.unrealengine.com/t/how-to-rotate-aiperception-or-attach-it-to-socket/323838/2 "2018-01-23T21:58:08Z")

</div>

You have to do it in C++. It’s explained here:

> **[AI Perception attachment](https://forums.unrealengine.com/questions/743065/ai-perception-attachment.html)**
>
> Hello, I want to attach AI Perception Component to characters head instead of capsule center. Does anyone know how to do it? I red somewhere that it can be done by making AIPerceptionComponent based class in C++ and adding functionality to...

---

<div class="post-metadata">

**Author:** ![SaOk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SaOk](https://forums.unrealengine.com/u/SaOk)\
**Post date:** [January 31, 2018, 12:23am UTC](https://forums.unrealengine.com/t/how-to-rotate-aiperception-or-attach-it-to-socket/323838/3 "2018-01-31T00:23:38Z")

</div>

Thanks :), good to know if I switch to use C++ at some point. Ideal would be still to have it for blueprints too.
