# AnimGraphNode includes and IK in C++

**URL:** <https://forums.unrealengine.com/t/animgraphnode-includes-and-ik-in-c/829089>\
**Category:** Character & Animation\
**Tags:** include, unreal-engine, CPP, question\
**Created:** [March 28, 2023, 1:23am UTC](https://forums.unrealengine.com/t/animgraphnode-includes-and-ik-in-c/829089 "2023-03-28T01:23:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![QuickJABProductions](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@QuickJABProductions](https://forums.unrealengine.com/u/QuickJABProductions)\
**Post date:** [March 28, 2023, 1:23am UTC](https://forums.unrealengine.com/t/animgraphnode-includes-and-ik-in-c/829089/1 "2023-03-28T01:23:03Z")

</div>

For my dissertation I am creating an IK script in C++. I thought the best way to do this would be replacing the ControlRig used in “ABP\_Manny” in the 3rd person template with my custom script.

To do this I have created a new C++ class based on AnimGraphNode\_ControlRig.h however it won’t compile. UE5 says that “AnimGraphNode\_CustomProperty.h” cannot be found. When I change the include to a hardcoded file path it works ok, but that just seems to kick the can down the road with other include errors until I get to a .generated file that I cannot find in order to get the absolute file path from. I am also painfully aware of how unsustainable using absolute file paths is.

I was wondering if anyone has a fix to my include issue and/or if there is a better way a writing a script for IK to be used for an Actor in UE5. I am aware that in reality you might as well just use blueprints but this is not an option for my dissertation as it must be done in C++.
