# Can a collision Component have multiple collision profiles?

**URL:** <https://forums.unrealengine.com/t/can-a-collision-component-have-multiple-collision-profiles/356829>\
**Category:** Debugging, Optimization, & Profiling\
**Tags:** projectile-hit, unreal-engine, CPP, question\
**Created:** [May 8, 2016, 4:04pm UTC](https://forums.unrealengine.com/t/can-a-collision-component-have-multiple-collision-profiles/356829 "2016-05-08T16:04:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LostScout](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LostScout](https://forums.unrealengine.com/u/LostScout)\
**Post date:** [May 8, 2016, 4:04pm UTC](https://forums.unrealengine.com/t/can-a-collision-component-have-multiple-collision-profiles/356829/1 "2016-05-08T16:04:26Z")

</div>

Lets say I had a projectile class. As a component of that class I had a sphere collision. Could I set that projectiles collision system (the sphere collision) to multiple collision profiles?

Example: with the same component  
myCollisionComponent-\>BodyInstance.SetCollisionProfileName(“Projectile”);

then myCollisionComponent-\>BodyInstance.SetCollisionProfileName(“Enemy”);  
as well as myCollisionComponent-\>BodyInstance.SetCollisionProfileName(“glass”);

or would I have to have a separate component per collision profile?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b5cfa23f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b5cfa23f](https://forums.unrealengine.com/u/anonymous_user_b5cfa23f)\
**Post date:** [May 9, 2016, 7:40pm UTC](https://forums.unrealengine.com/t/can-a-collision-component-have-multiple-collision-profiles/356829/2 "2016-05-09T19:40:01Z")

</div>

Hi LostScout,

Looking at the documentation for [the SetCollisionProfileName function](https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/Components/UPrimitiveComponent/SetCollisionProfileName/index.html), this will overwrite the previous collision settings. Therefore, I believe it is save to say that each collision component can have only one collision profile.

As a separate note, I’ve not attempted to have multiple collision components on the same actor, but traditionally there is usually only one per actor. I wonder if perhaps there is a simpler way to do what you want than using multiple components/profiles. Can I ask why you want to have multiple collision profiles on the same actor?

-
