Example #1
0
 public void rayTest(ref btVector3 rayFrom,ref btVector3 rayTo, BroadphaseRayCallback rayCallback,ref btVector3 aabbMin,ref btVector3 aabbMax)
 {
     throw new NotImplementedException();
 }
Example #2
0
        public virtual void	rayTest(ref btVector3 rayFrom,ref btVector3 rayTo, BroadphaseRayCallback rayCallback,ref btVector3 aabbMin,ref btVector3 aabbMax)
        {
	        if (m_raycastAccelerator!=null)
	        {
		        m_raycastAccelerator.rayTest(ref rayFrom,ref rayTo,rayCallback,ref aabbMin,ref aabbMax);
	        } else
	        {
		        //choose axis?
		        ushort axis = 0;
		        //for each proxy
                for (ushort i = 1; i < m_numHandles * 2 + 1; i++)
		        {
			        if (m_pEdges[axis][i].IsMax)
			        {
				        rayCallback.process(getHandle(m_pEdges[axis][i].m_handle));
			        }
		        }
	        }
        }