Here is a code example for PhysX wrapper I wrote for Catapult.