Portal-In-Unity
Portal-In-Unity copied to clipboard
Player isn't rotated teleporting between portals
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.
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.