Generalize box2d interpolation into a class. Use it to interpolate when displaying moving platforms.