Пример #1
0
	bool PhysicsSystemImpl::connect2VisualDebugger()
	{
		if (m_physics->getPvdConnectionManager() == nullptr) return false;

		const char* pvd_host_ip = "127.0.0.1";
		int port = 5425;
		unsigned int timeout = 100;
		physx::PxVisualDebuggerConnectionFlags connectionFlags = physx::PxVisualDebuggerExt::getAllConnectionFlags();

		auto* theConnection = physx::PxVisualDebuggerExt::createConnection(
			m_physics->getPvdConnectionManager(), pvd_host_ip, port, timeout, connectionFlags);
		return theConnection != nullptr;
	}
Пример #2
0
	void PhysicsSystemImpl::destroy()
	{
		m_cooking->release();
		m_physics->release();
		m_foundation->release();
		LUMIX_DELETE(m_allocator, m_physx_allocator);
		LUMIX_DELETE(m_allocator, m_error_callback);
	}
Пример #3
0
void PhysicsSystemImpl::destroy()
{
	m_controller_manager->release();
	m_cooking->release();
	m_physics->release();
	m_foundation->release();
	m_allocator.deleteObject(m_physx_allocator);
	m_allocator.deleteObject(m_error_callback);
}