# Get debris from Destructible Object

**URL:** <https://forums.unrealengine.com/t/get-debris-from-destructible-object/298279>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [November 6, 2014, 5:37am UTC](https://forums.unrealengine.com/t/get-debris-from-destructible-object/298279 "2014-11-06T05:37:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![viperld\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@viperld\_1](https://forums.unrealengine.com/u/viperld_1)\
**Post date:** [November 6, 2014, 5:37am UTC](https://forums.unrealengine.com/t/get-debris-from-destructible-object/298279/1 "2014-11-06T05:37:44Z")

</div>

I’d like to get the debris from my UDestructibleComponent once it breaks.

I’ve had no luck figuring out how to do this however. My attempt was in Blueprints to get the component, and get it’s children array.

A C++ solution would be ideal but Blueprints are fine as well.

Thanks for reading.

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [November 8, 2014, 12:15pm UTC](https://forums.unrealengine.com/t/get-debris-from-destructible-object/298279/2 "2014-11-08T12:15:01Z")

</div>

#PhysX Wiki Tutorial

I have a whole tutorial on how to do this here!

This tutorial shows you how to get all the world space transforms of the debris using PhysX code in a custom Destructible Component class!

**Wiki Link**

> **[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...

Enjoy!

Rama

---

<div class="post-metadata">

**Author:** ![viperld\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@viperld\_1](https://forums.unrealengine.com/u/viperld_1)\
**Post date:** [November 15, 2014, 10:38pm UTC](https://forums.unrealengine.com/t/get-debris-from-destructible-object/298279/3 "2014-11-15T22:38:54Z")

</div>

Wow, super sorry about this late response.

First, thank you a ton for the link. I’ve used many of your posts as key resources for learning UE4.

That being said, I am unable to access the “physx::PxRigidDynamic” type’s members. That is to say, the tutorial’s stock example code does not compile for me. Including “PhysXIncludes” has proven to NOT be enough. Nor has adding “PhysX”, “APEX” to the Build.CS.

I’m currently using 4.4.

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [November 16, 2014, 3:54am UTC](https://forums.unrealengine.com/t/get-debris-from-destructible-object/298279/4 "2014-11-16T03:54:32Z")

</div>

My tutorial is based on 4.4,

the only two steps I did was the PhysXIncludes and the build CS stuff

So I am not sure what your issue is!

I’d say try again in a fresh C++ template project

make sure you go into YourGame.h and change EngineMinimal to Engine.h

see what happens then

My patented "UE4 C++ Starting Anew"© method will hopefully uncover the issue

🙂

Rama
