The glitch can be done at the ending of the game, right after Ganon is defeated. Enter the next room where Princess Zelda is and walk straight into the flames towards her rather than slashing them away with the Sword. Keep pushing forward, and the avatar will glitch into the flame. He will then speak with her, and then the "walking" cutscene will play out, but instead of walking through the tunnel out towards the exit, they will both walk into a wall. Once the game has decided that Zelda has reached the appropriate distance, you will regain control again. At this point, it is possible to walk around freely while Princess Zelda follows you. However, entering the first room, will make her take her appropriate place and the glitch stops working.