From 20b315b7fc3de2f25c9ebc81f4b27624bf7010fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albin=20Cor=C3=A9n?= <2108U9@gmail.com> Date: Fri, 20 Apr 2018 17:16:48 +0200 Subject: [PATCH] Fixed start position on NetworkedTransform --- MLAPI/MonoBehaviours/Prototyping/NetworkedTransform.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/MLAPI/MonoBehaviours/Prototyping/NetworkedTransform.cs b/MLAPI/MonoBehaviours/Prototyping/NetworkedTransform.cs index 64d8abd..d00d7da 100644 --- a/MLAPI/MonoBehaviours/Prototyping/NetworkedTransform.cs +++ b/MLAPI/MonoBehaviours/Prototyping/NetworkedTransform.cs @@ -94,6 +94,15 @@ namespace MLAPI.MonoBehaviours.Prototyping { timeForLerp = 1f / SendsPerSecond; } + + lastSentRot = transform.rotation; + lastSentPos = transform.position; + + lerpStartPos = transform.position; + lerpStartRot = transform.rotation; + + lerpEndPos = transform.position; + lerpStartRot = transform.rotation; } private void Update()