I know this is an old question, but I’m going to add some updated info for those who need it, since the physx header files above are no longer correct (at least they didn’t work for me). The header files you actually need now are:
#include “PhysXIncludes.h”
#include “PhysicsPublic.h”
#include “PhysXPublic.h”
You also need to edit your Build.cs file to include Physx and APEX, as in:
PublicDependencyModuleNames.AddRange(new string[] { “Core”, “CoreUObject”, “Engine”, “InputCore”, “PhysX”, “APEX” });
Further information on getting physx code to work can be found at these links:
It took me several days to figure this out, so hopefully I can save someone the future trouble. Setting the inertia to zero works great, by the way.