Hello all,
I am trying to make a portal system. The teleportation works completely fine. However, I couldn’t quite get the visual aspect of it right. I want the player to look through one door and see through the other, just like how a portal works. This is what it looks like right now:
Here is what my system looks like: (The black lines are the actual system and the purple line is my goal)
The door on the right is door1 and on the left it is door2. Basically what I am doing is getting the direction from the player’s camera into the door1, and setting the camera position to door2 with the same direction, however that resulted in a weird behaviour which I demonstrated in the picture above. I want to make it so the camera FOV would be like the purple lines I drew, but I don’t know how to do that.
If I did not provide enough information feel free to ask. Any help would be greatly appreciated.