How do I add 'projectile' object type to collision presets?

Hi. I’m basically trying to destroy my projectile when it hits a wall (brush). In the FPS template there is an object type ‘projectile’ in the collision presets, however, I am using the Side Scroller template and it is not there.

Thanks,

Hi ,

Go into your project settings and find the Collision tab. There you can set a “New object channel”. Type in projectile. This will give you the ability to customize how your projectile interacts with different objects. Then you can go to your projectile blueprint and set the object type to projectile by setting collision to custom.

Hello, I have added the Projectile object channel through project settings, but how do I access in cpp? Is it ECC_GameTraceChannel1 ?

Hi Nevermore,

What you are looking for is enum ECollisionChannel in the EngineTypes.h file. This is where you can find how other channels are defined. If ECC_GameTraceChannel1 is the name of your collision channel (as set up in the editor), you should be able to access it using the name as you suggested.