# RadialForceComponent doesn't recognize custom object types when component created in code

**URL:** <https://forums.unrealengine.com/t/radialforcecomponent-doesnt-recognize-custom-object-types-when-component-created-in-code/365392>\
**Category:** C++\
**Tags:** radial-force, unreal-engine, question\
**Created:** [July 27, 2016, 11:56pm UTC](https://forums.unrealengine.com/t/radialforcecomponent-doesnt-recognize-custom-object-types-when-component-created-in-code/365392 "2016-07-27T23:56:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Darcey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ryan\_Darcey](https://forums.unrealengine.com/u/Ryan_Darcey)\
**Post date:** [July 27, 2016, 11:56pm UTC](https://forums.unrealengine.com/t/radialforcecomponent-doesnt-recognize-custom-object-types-when-component-created-in-code/365392/1 "2016-07-27T23:56:08Z")

</div>

Here are the steps:

1. Create a radial force component for a pawn in code.
2. Edit that radial force component in editor to only filter a custom collision object channel that you’ve created for your project.
3. Note that the radial force component will not affect that custom object channel.

However, if instead of creating the radial force component in code, you add it to the pawn via the editor, it will now recognize objects in the custom object channel.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_61b4a355](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_61b4a355](https://forums.unrealengine.com/u/anonymous_user_61b4a355)\
**Post date:** [July 28, 2016, 5:29pm UTC](https://forums.unrealengine.com/t/radialforcecomponent-doesnt-recognize-custom-object-types-when-component-created-in-code/365392/2 "2016-07-28T17:29:47Z")

</div>

Hey rcdarcey,

Thank you for the repro steps. I was able to recreate this issue and it is currently being tracked at: [https://issues.unrealengine.com/issue/UE-33880](https://issues.unrealengine.com/issue/UE-33880)

---

<div class="post-metadata">

**Author:** ![Ryan\_Darcey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ryan\_Darcey](https://forums.unrealengine.com/u/Ryan_Darcey)\
**Post date:** [July 28, 2016, 5:41pm UTC](https://forums.unrealengine.com/t/radialforcecomponent-doesnt-recognize-custom-object-types-when-component-created-in-code/365392/3 "2016-07-28T17:41:28Z")

</div>

Awesome. Thanks, Kyle!
