function closes the PhysX engine. It is automatically called through the on_exit event when physX_open was called before. Otherwise make sure to call physX_destroy at the end of the program, or when you don't need the physics engine anymore.
Unregisters all entities and releases
all relevant PhysX SDK functions.