How to Change Collision Response to Custom Object Channel

I want to change the collision response to a custom Object channel that I already set in the Collision project settings. I believe that I have to use SetCollisionResponseToChannel but not sure how to set the first parameter to the custom Object channel already set.

image

I am trying to do this in C++.

Look in your DefaultEngine.ini and somewhere near the end find the name of your custom channel in a line that looks like this:
+DefaultChannelResponses=(Channel=ECC_GameTraceChannel1

this ECC_GameTraceChannel# is what you need to use.

2 Likes