I tried doing that but it didn't work because the coordinates change when camera.transform is updated on line 421.