This doesnt do much special stuff indeed, just a check for isinside(cube coordinates) would suffice for this to work...