Formated and changed worldToLocal() method to not use Stack