|
|
@@ -116,7 +116,6 @@ public:
|
|
|
PhysXError m_error;
|
|
|
physx::PxFoundation* m_foundation;
|
|
|
physx::PxPhysics* m_physics;
|
|
|
- physx::PxCooking* m_cooking;
|
|
|
};
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
@@ -125,7 +124,6 @@ inline Physics::Physics()
|
|
|
, m_px_allocator(m_allocator)
|
|
|
, m_foundation(NULL)
|
|
|
, m_physics(NULL)
|
|
|
- , m_cooking(NULL)
|
|
|
{
|
|
|
m_foundation = PxCreateFoundation(PX_PHYSICS_VERSION, m_px_allocator, m_error);
|
|
|
CE_ASSERT(m_foundation, "Unable to create PhysX Foundation");
|
|
|
@@ -135,15 +133,11 @@ inline Physics::Physics()
|
|
|
|
|
|
bool extension = PxInitExtensions(*m_physics);
|
|
|
CE_ASSERT(extension, "Unable to initialize PhysX Extensions");
|
|
|
-
|
|
|
- m_cooking = PxCreateCooking(PX_PHYSICS_VERSION, *m_foundation, physx::PxCookingParams());
|
|
|
- CE_ASSERT(m_cooking, "Unable to create PhysX Cooking");
|
|
|
}
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
inline Physics::~Physics()
|
|
|
{
|
|
|
- m_cooking->release();
|
|
|
PxCloseExtensions();
|
|
|
m_physics->release();
|
|
|
m_foundation->release();
|