Include PhysxSupport.h

How to Include PhysXSupport.h

You can Indeed #include PhysXSupport.h

For anyone who finds this in the future, you can easily include PhysXSupport for Epic’s awesome SceneLocking macros like this:

//make sure you have PhysX and APEX in your builds cs as shown above

and then add these includes in the .cpp where you want to use SCOPED_READ_LOCK etc



//PhysX 
#include "PhysXIncludes.h"
#include "PhysicsPublic.h"		//For the ptou conversions
#include "Runtime/Engine/Private/PhysicsEngine/PhysXSupport.h"


The secret is this:



#include "Runtime/Engine/Private/PhysicsEngine/PhysXSupport.h"


:wink: