# How do I use private engine related includes?

**URL:** <https://forums.unrealengine.com/t/how-do-i-use-private-engine-related-includes/428906>\
**Category:** World Creation\
**Tags:** engine, physx, unreal-engine, CPP, question\
**Created:** [July 7, 2018, 5:26pm UTC](https://forums.unrealengine.com/t/how-do-i-use-private-engine-related-includes/428906 "2018-07-07T17:26:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zykren](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zykren](https://forums.unrealengine.com/u/Zykren)\
**Post date:** [July 7, 2018, 5:26pm UTC](https://forums.unrealengine.com/t/how-do-i-use-private-engine-related-includes/428906/1 "2018-07-07T17:26:14Z")

</div>

I am trying to use “Collision/PhysXCollision.h” and a couple other private PhysX related files. It keeps giving my errors when I try to include them in my code, as expected. Is there a way I can get aroung this?

---

<div class="post-metadata">

**Author:** ![Przemek2222](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Przemek2222](https://forums.unrealengine.com/u/Przemek2222)\
**Post date:** [July 7, 2018, 6:10pm UTC](https://forums.unrealengine.com/t/how-do-i-use-private-engine-related-includes/428906/2 "2018-07-07T18:10:58Z")

</div>

Hello,  
you are reciving errors because you should add modules.  
Open VS and find YourProjectName.Build.cs file and you should see  
PublicDependencyModuleNames.AddRange and inside you should add (I’m not sure) “PhysX”, “PhysicsEngine”

More about modules: [https://docs.unrealengine.com/en-us/Programming/Modules/Gameplay](https://docs.unrealengine.com/en-us/Programming/Modules/Gameplay)

Modules list: [Module list? - C++ - Unreal Engine Forums](https://answers.unrealengine.com/questions/369262/module-list.html)

---

<div class="post-metadata">

**Author:** ![Zykren](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zykren](https://forums.unrealengine.com/u/Zykren)\
**Post date:** [July 7, 2018, 8:04pm UTC](https://forums.unrealengine.com/t/how-do-i-use-private-engine-related-includes/428906/3 "2018-07-07T20:04:55Z")

</div>

I have “PhysX”, “PhysicsEngine” can’t be found.

---

<div class="post-metadata">

**Author:** ![Przemek2222](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Przemek2222](https://forums.unrealengine.com/u/Przemek2222)\
**Post date:** [July 8, 2018, 7:28am UTC](https://forums.unrealengine.com/t/how-do-i-use-private-engine-related-includes/428906/4 "2018-07-08T07:28:24Z")

</div>

You should use only #include “PhysXIncludes.h” remove other physx related includes.

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

PS: Sorry for “PhysicsEngine” may be a bit old.
