Hello, I want to run some physics code on a fixed physics time step for consistency. I tried enabling AsyncPhysicsTick in project settings and in my actor component. However it seems that simply adding the line SetAsyncPhysicsTickEnabled(true) in the constructor causes an assertion failure and crashes the editor almost immediately (see error below). The problematic line seems to crash because Component is a nullptr. My question is how do I use async physics tick inside an actor component properly and avoid the crash?
This is the error I get when it crashes:
Assertion failed: Component && Component->IsActive() [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\PhysicsEngine\Experimental\PhysScene_Chaos.cpp] [Line: 205]
line 205 of PhysScene_Chaos.cpp:
check(Component && Component->IsActive());