bool GetIntersectionTime(Ray pRay, ref float pMaxDist, bool pStopAtFirstHit, ModelIgnoreFlags ignoreFlags) { float distance = pMaxDist; MapRayCallback intersectionCallBack = new MapRayCallback(iTreeValues, ignoreFlags); iTree.IntersectRay(pRay, intersectionCallBack, ref distance, pStopAtFirstHit); if (intersectionCallBack.DidHit()) { pMaxDist = distance; } return(intersectionCallBack.DidHit()); }
bool getIntersectionTime(Ray pRay, ref float pMaxDist, bool pStopAtFirstHit) { float distance = pMaxDist; MapRayCallback intersectionCallBack = new MapRayCallback(iTreeValues); iTree.intersectRay(pRay, intersectionCallBack, ref distance, pStopAtFirstHit); if (intersectionCallBack.didHit()) { pMaxDist = distance; } return(intersectionCallBack.didHit()); }