Esempio n. 1
0
		void freeHandle( btSimpleBroadphaseProxy* proxy )
		{
			int handle = int( proxy - m_pHandles );
			Debug.Assert( handle >= 0 && handle < m_maxHandles );
			if( handle == m_LastHandleIndex )
			{
				m_LastHandleIndex--;
			}
			proxy.SetNextFree( m_firstFreeHandle );
			m_firstFreeHandle = handle;

			proxy.m_clientObject = 0;

			m_numHandles--;
		}