# How Can I Add Collision To CustomMeshComponent

**URL:** <https://forums.unrealengine.com/t/how-can-i-add-collision-to-custommeshcomponent/347108>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [February 11, 2016, 7:02am UTC](https://forums.unrealengine.com/t/how-can-i-add-collision-to-custommeshcomponent/347108 "2016-02-11T07:02:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ycz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ycz](https://forums.unrealengine.com/u/ycz)\
**Post date:** [February 11, 2016, 7:02am UTC](https://forums.unrealengine.com/t/how-can-i-add-collision-to-custommeshcomponent/347108/1 "2016-02-11T07:02:52Z")

</div>

Now Im using CustomMeshComponent For My Terrain Generation Instead Of Using ProceduralMesh  
But Theres Some Problem In Using This Component  
I Cant Add Collision To It  
How Can I Add A Collision To It?  
Thanks XD

---

<div class="post-metadata">

**Author:** ![lion032](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lion032](https://forums.unrealengine.com/u/lion032)\
**Post date:** [February 11, 2016, 11:24am UTC](https://forums.unrealengine.com/t/how-can-i-add-collision-to-custommeshcomponent/347108/2 "2016-02-11T11:24:16Z")

</div>

Collision is not supported by CustomMeshComponent but it can be easily added by creating a derived class (In C++)  
from CustomMeshComponent and pretty much copying the collision creation code from ProceduralMesh.  
Unfortunately I am not next to a computer where I have access to the engine at the moment but I will try to implement that class for you as soon as I can.

---

<div class="post-metadata">

**Author:** ![ycz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ycz](https://forums.unrealengine.com/u/ycz)\
**Post date:** [February 13, 2016, 5:27pm UTC](https://forums.unrealengine.com/t/how-can-i-add-collision-to-custommeshcomponent/347108/3 "2016-02-13T17:27:16Z")

</div>

Thanks,I creat a collision class and update CollisionData after created the meshes.
