Change Heightfield.cpp, line 1153 from bool needFurtherPasses = (o2->type == dTriMeshClass); to bool needFurtherPasses = (o2->type == dTriMeshClass) && (o2->type = dRayClass);