Multiple Recursive Portals and AI In Unity: Intro and Table of Contents
In this tutorial series, we’ll use create portals that can be rendered recursively, walked through seamlessly, shot through using raycasts and create AI that is aware of portals and is able to see through them. Last but not least, we’ll optimize these portals and AI to have the game run at playable speeds. You can use these portals to create seamless impossible spaces.
This tutorial is based on the techniques I used in my new game, Quantum Tournament. You can take a look at the alpha gameplay video below to get a feel for what type of effect we’re trying to create.
Let’s jump right into it!
Table of contents
- Part 1: Basic portal rendering
- Part 2: Portal teleportation
- Part 3: Raycasting through portals
- Part 4: Recursive portal rendering
- Part 5: Optimizations in portal rendering
- Part 6: Object cloning
- Part 7: AI navigation
- Part 8: AI visibility checks
Author’s note
Did you enjoy this tutorial? Did it help you make a game with portal-like mechanics? If so, please consider buying me a cup of coffee. Thank you! ❤