Skip to content

Commit

Permalink
fix: fixing typo in teleport function
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Frowen committed Dec 7, 2021
1 parent 73a0a75 commit 162fb45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/SyncPositionBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ void ClientInterpolation()
#region Teleport
public void Teleport(Vector3 position, Quaternion rotation)
{
transform.SetPositionAndRotation(vector3, quaternion);
transform.SetPositionAndRotation(position, rotation);
RpcTeleport(position, rotation);
}

Expand Down

0 comments on commit 162fb45

Please sign in to comment.