Trying to debug why coordinates sometimes become NaN when climing horizontal ladder