Ejemplo 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--;
		}
Ejemplo n.º 2
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(btSimpleBroadphaseProxy obj) {
   return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
 }
Ejemplo n.º 3
0
        public static bool aabbOverlap(btSimpleBroadphaseProxy proxy0, btSimpleBroadphaseProxy proxy1)
        {
            bool ret = BulletPINVOKE.btSimpleBroadphase_aabbOverlap(btSimpleBroadphaseProxy.getCPtr(proxy0), btSimpleBroadphaseProxy.getCPtr(proxy1));

            return(ret);
        }
Ejemplo n.º 4
0
		static bool aabbOverlap( btSimpleBroadphaseProxy* proxy0, btSimpleBroadphaseProxy* proxy1 );