# How to set a shape to a PhysicsVolume class in C++

**URL:** <https://forums.unrealengine.com/t/how-to-set-a-shape-to-a-physicsvolume-class-in-c/452076>\
**Category:** World Creation\
**Tags:** box, unreal-engine, brush, UE4, CPP, question\
**Created:** [July 11, 2019, 3:08pm UTC](https://forums.unrealengine.com/t/how-to-set-a-shape-to-a-physicsvolume-class-in-c/452076 "2019-07-11T15:08:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nazruden](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nazruden](https://forums.unrealengine.com/u/Nazruden)\
**Post date:** [July 11, 2019, 3:08pm UTC](https://forums.unrealengine.com/t/how-to-set-a-shape-to-a-physicsvolume-class-in-c/452076/1 "2019-07-11T15:08:30Z")

</div>

Hey everyone,

I’m looking for a way to set a simple shape to my custom PhysicsVolume class created in C++. When I’m spawning this custom PhysicsVolume class, it doesn’t have any shape set, I thought it would be as in the editor, a basic box of 200x200x200. This is what I want, if anyone can help, would be appreciated, thanks a lot.

---

<div class="post-metadata">

**Author:** ![Nazruden](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nazruden](https://forums.unrealengine.com/u/Nazruden)\
**Post date:** [July 12, 2019, 8:55am UTC](https://forums.unrealengine.com/t/how-to-set-a-shape-to-a-physicsvolume-class-in-c/452076/2 "2019-07-12T08:55:51Z")

</div>

Up, I really need an answer on this please, I need to spawn a PhysicsVolume for every character I have, and I can’t even create a blueprint from PhysicsVolume, only a C++ class so I can’t bypass the issue I’m having with editing a blueprint with the correct shape and spawn it at runtime.
