Fixed start position on NetworkedTransform

This commit is contained in:
Albin Corén 2018-04-20 17:16:48 +02:00
parent e0ee0862c6
commit 20b315b7fc

View File

@ -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()