Brackeys / Portal-In-Unity

The project files from my tutorial on creating a Smooth Portal effect in Unity.
160 stars 82 forks source link

Player isn't rotated teleporting between portals #1

Open DacodaDragon opened 6 years ago

DacodaDragon commented 6 years ago

UnityStandardAssets.Characters.FirstPerson.MouseLook forces a rotation on the player, negating the added rotation from PortalTeleporter. The unwanted behavior can be reproduced when the rotation of both portals do not equal eachother.

DacodaDragon commented 6 years ago

A solution to this would be to look into UnityStandardAssets.Characters.FirstPerson.MouseLook and fix the rotations so it doesn't force a rotation but instead uses addition to the camera rotation depending on the mouselock.