From 57037cce9ced4ba27efe1f8ceb472b08ce83eb1c Mon Sep 17 00:00:00 2001 From: Mister_Nebula <41904486+misternebula@users.noreply.github.com> Date: Fri, 19 Feb 2021 13:38:21 +0000 Subject: [PATCH] fix rotation smooth --- QSB/TransformSync/TransformSync.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QSB/TransformSync/TransformSync.cs b/QSB/TransformSync/TransformSync.cs index 50099af6..a433e29b 100644 --- a/QSB/TransformSync/TransformSync.cs +++ b/QSB/TransformSync/TransformSync.cs @@ -110,7 +110,7 @@ namespace QSB.TransformSync } SyncedTransform.localPosition = SmartSmoothDamp(SyncedTransform.localPosition, transform.position); - SyncedTransform.localRotation = QuaternionHelper.SmoothDamp(SyncedTransform.localRotation, transform.rotation, ref _rotationSmoothVelocity, Time.deltaTime); + SyncedTransform.localRotation = QuaternionHelper.SmoothDamp(SyncedTransform.localRotation, transform.rotation, ref _rotationSmoothVelocity, SmoothTime); } private Vector3 SmartSmoothDamp(Vector3 currentPosition, Vector3 targetPosition)