I Made a Portal Gun in Godot
I tried making Portals in Godot and it kinda sorta worked!
Consider supporting the channel: https://www.patreon.com/xen42
This was a struggle. The main difficulty here was making Portals work when they're up against walls, weird behaviour when duplicating a RigidBody node, and me not really knowing how quaternions work. The view through the Portals is also just ever so slightly off.
Contents:
0:00 - Portal demonstration
0:46 - Portal graphics
4:53 - Teleportation
11:19 - Portal gun
Some sources I used and other projects I checked out:
For rotating player upright with torque: https://godotengine.org/qa/92316/how-to-find-torque-to-rotate-object-towards-desired-rotation
Mirror example project:
https://github.com/JFonS/godot-mirror-example
Godot Portal Demo:
https://github.com/io12/godot-portal-demo
The source code is here: https://github.com/xen-42/godot-portal-gun
=========================================
Music credits (in order):
Fluffing a Duck by Kevin MacLeod
Link: https://incompetech.filmmusic.io/song/3766-fluffing-a-duck
License: https://filmmusic.io/standard-license
Deep Relaxation Preview by Kevin MacLeod
Link: https://incompetech.filmmusic.io/song/5726-deep-relaxation-preview/
License: https://filmmusic.io/standard-license
Stock photos:
People photo created by cookie_studio - www.freepik.com. https://www.freepik.com/free-photo/friendly-guy-waving-hand-saying-hello_9583965.htm
Head in hands.jpg taken from Wikimedia Commons under the Creative Commons Attribution 4.0 International license. https://commons.wikimedia.org/wiki/File:Head_in_hands.jpg

