Skip to content

Commit

Permalink
fix: #723 - NetworkTransform teleport works properly now
Browse files Browse the repository at this point in the history
  • Loading branch information
miwarnec committed Jan 9, 2020
1 parent 2d59de8 commit fd7dc5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Assets/Mirror/Components/NetworkTransformBase.cs
Expand Up @@ -403,6 +403,10 @@ void Update()
{
// local position/rotation for VR support
ApplyPositionRotationScale(goal.localPosition, goal.localRotation, goal.localScale);

// reset data points so we don't keep interpolating
start = null;
goal = null;
}
else
{
Expand Down

0 comments on commit fd7dc5e

Please sign in to comment.