void PhysXManager::CleanupPhysics()
{
	gScene->release();
	gDispatcher->release();
	PxProfileZoneManager* profileZoneManager = gPhysics->getProfileZoneManager();
	if (gConnection != NULL)
		gConnection->release();
	gPhysics->release();
	profileZoneManager->release();
	gFoundation->release();
}
Exemplo n.º 2
0
void cleanupPhysics(bool interactive)
{
	PX_UNUSED(interactive);
	gScene->release();
	gDispatcher->release();
	PxProfileZoneManager* profileZoneManager = gPhysics->getProfileZoneManager();
	if (gConnection != NULL)
		gConnection->release();
	gPhysics->release();
	profileZoneManager->release();
	gFoundation->release();
}
void 
Spacetime::cleanupPhysics(void)
{
	gScene->release();
	gDispatcher->release();
	PxProfileZoneManager* profileZoneManager = gPhysics->getProfileZoneManager();
	if(gConnection != NULL)
		gConnection->release();
	gPhysics->release();	
	profileZoneManager->release();
	gFoundation->release();
}
Exemplo n.º 4
0
void cleanupPhysics(bool interactive)
{
	PX_UNUSED(interactive);
	gScene->release();
	gDispatcher->release();
	PxProfileZoneManager* profileZoneManager = gPhysics->getProfileZoneManager();
	if(gConnection != NULL)
		gConnection->release();
	PxCloseExtensions();
	gPhysics->release();	
	profileZoneManager->release();
	gFoundation->release();
	
	printf("SnippetJoint done.\n");
}
void cleanupPhysics()
{
	//Clean up the vehicles and scene objects
#ifdef PX_PROFILE
	gProfiler->free(gAllocator);
#endif
	gVehicleConcurrency->free(gAllocator);
	gVehicleWheelQueryResults->free(gAllocator);
	for(PxU32 i = 0; i < NUM_VEHICLES;	i++)
	{
		gVehicles[i]->getRigidDynamicActor()->release();
		((PxVehicleDrive4W*)gVehicles[i])->free();
	}
	gGroundPlane->release();
	gFrictionPairs->release();
	for(PxU32 i = 0; i < NUM_VEHICLES;	i++)
	{
		gBatchQueries[i]->release();
	}
	gVehicleSceneQueryData->free(gAllocator);
	PxCloseVehicleSDK();

	//Clean up the task manager used for concurrent vehicle updates.
	gTaskManager->release();

	//Clean up the scene and sdk.
	gMaterial->release();
	gCooking->release();
	gScene->release();
	gDispatcher->release();
	PxProfileZoneManager* profileZoneManager = gPhysics->getProfileZoneManager();
	if(gConnection != NULL) gConnection->release();
	gPhysics->release();	
	profileZoneManager->release();
	gFoundation->release();

	printf("SnippetVehicleMultiThreading done.\n");
}