# Using PhysX Contact Modifiers

**URL:** <https://forums.unrealengine.com/t/using-physx-contact-modifiers/644695>\
**Category:** C++\
**Tags:** unreal-engine, question, UE4-27, CPP\
**Created:** [September 8, 2022, 10:40pm UTC](https://forums.unrealengine.com/t/using-physx-contact-modifiers/644695 "2022-09-08T22:40:44Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![blamethenewguy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blamethenewguy/32/570048_2.png) [@blamethenewguy](https://forums.unrealengine.com/u/blamethenewguy)\
**Post date:** [September 10, 2022, 9:45am UTC](https://forums.unrealengine.com/t/using-physx-contact-modifiers/644695/3 "2022-09-10T09:45:24Z")

</div>

This is wonderful. After playing with the other post I stumbled upon (perhaps more, I can’t remember how many things I’ve dug through), I think I have something remotely similar. However your example seems to be a lot closer to exactly what I need.

You mention that Contact Modifiers are global, affecting the entire physics scene and not specific bodies. The PhysX docs [here](https://docs.nvidia.com/gameworks/content/gameworkslibrary/physx/guide/Manual/RigidBodyCollision.html#collision-filtering) says you can “exempt certain pairs of objects from interacting, or to configure the SDK collision detection behavior in a particular way for an interacting pair”. It seems your code is using collision channels as a broad way to tell if it’s a vehicle/landscape interaction. I think that might work for what I’m doing, but how does what you’re doing differ from the docs, or does it?

Finally, what files are you putting these in? For me, the first two chunks of code are in a custom World Settings as used [here](https://forums.unrealengine.com/t/how-do-i-get-my-contactmodifycallback-to-work/250909/5). Where would I put the startup module?

Thank you. This gives me a few things to test with.

---

_[View the full topic](https://forums.unrealengine.com/t/using-physx-contact-modifiers/644695)._
