Thank you very much for this. I have used it in my 2d puzzle game. Take a look!
https://niloybroforce.itch.io/portrift
Nice take on Portal. Thanks for sharing.