# How do you add a StaticMesh and Physics to AActor with C++?,How to give an AActor a StaticMesh and physics simulation using C++?

**URL:** <https://forums.unrealengine.com/t/how-do-you-add-a-staticmesh-and-physics-to-aactor-with-c-how-to-give-an-aactor-a-staticmesh-and-physics-simulation-using-c/319133>\
**Category:** Asset Creation\
**Tags:** actor, unreal-engine, question\
**Created:** [May 19, 2015, 4:21pm UTC](https://forums.unrealengine.com/t/how-do-you-add-a-staticmesh-and-physics-to-aactor-with-c-how-to-give-an-aactor-a-staticmesh-and-physics-simulation-using-c/319133 "2015-05-19T16:21:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akblabla](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Akblabla](https://forums.unrealengine.com/u/Akblabla)\
**Post date:** [May 19, 2015, 4:21pm UTC](https://forums.unrealengine.com/t/how-do-you-add-a-staticmesh-and-physics-to-aactor-with-c-how-to-give-an-aactor-a-staticmesh-and-physics-simulation-using-c/319133/1 "2015-05-19T16:21:40Z")

</div>

I am currently having issues creating a extension of the AActor class. I want to give it a StaticMesh with physics simulation. I need to be able to choose the mesh and adjust the hitbox through code. It is to be used as a base for items that are pickupable. How would I do this?
