updated RecastManager findNearestPoly result check to check the actual polyref value rather than the pointer