# How to Disable Chaos in UE4 26 (WITH\_CHAOS Macro)

**URL:** <https://forums.unrealengine.com/t/how-to-disable-chaos-in-ue4-26-with-chaos-macro/472848>\
**Category:** World Creation\
**Tags:** physics-handle, unreal-engine, FeatureRequest, Physics, question\
**Created:** [October 13, 2020, 10:24am UTC](https://forums.unrealengine.com/t/how-to-disable-chaos-in-ue4-26-with-chaos-macro/472848 "2020-10-13T10:24:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_8987b35f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8987b35f](https://forums.unrealengine.com/u/anonymous_user_8987b35f)\
**Post date:** [October 13, 2020, 10:24am UTC](https://forums.unrealengine.com/t/how-to-disable-chaos-in-ue4-26-with-chaos-macro/472848/1 "2020-10-13T10:24:56Z")

</div>

Hi,

I am migrating from 4.24 to 4.26.0.

I am using NVIDIA Physics handle at some point and that handle is disabled by default in the engine.

in 4.24 **WITH\_CHAOS** is **0** by default

in 4.26 **WITH\_CHAOS** is **1** by default

You can double check that from the following header file.

**Physics/PhysicsInterfacePhysX.h**

I would like to disable Chaos Physics.

```
PxRigidBody* rigid_body_handle = FPhysicsInterface_PhysX::GetPxRigidBody_AssumesLocked(BodyInstance->GetPhysicsActorHandle());

```

Two things I tried,

1. Adding

to build.cs

1. Adding

to Editor.target.cs

---

<div class="post-metadata">

**Author:** ![ltNightshade.s6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ltNightshade.s6](https://forums.unrealengine.com/u/ltNightshade.s6)\
**Post date:** [March 24, 2021, 9:56am UTC](https://forums.unrealengine.com/t/how-to-disable-chaos-in-ue4-26-with-chaos-macro/472848/2 "2021-03-24T09:56:21Z")

</div>

I was going to say:

> If you search for **WITH\_CHAOS** in .cs files, you’ll see it’s defined in _ModuleRules.cs_. It’s controlled with whether or not **Target.bUseChaos** is set somewhere.  
> Searching for bUseChaos in .cs files, I find it’s set false by default in TargetRules.cs. So I’m not sure where it’d be getting set to false unless you’re using the precompiled editor and they have it set to true.

But you already know about **bUseChaos**.

Are you compiling the engine yourself or using a precompiled editor? **bUseChaos** should be all you need, but if you’re using a prebuilt editor I’m not sure how that would work out.
