Updated the way platforms are checked for being out of view.