From 7ff4eb06f3137ffc3da7c51349ddc8ebd5d6f03e Mon Sep 17 00:00:00 2001 From: Mister_Nebula <41904486+misternebula@users.noreply.github.com> Date: Wed, 26 May 2021 20:42:47 +0100 Subject: [PATCH] add TODO and warning --- QSB/Syncs/TransformSync/UnparentedBaseTransformSync.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/QSB/Syncs/TransformSync/UnparentedBaseTransformSync.cs b/QSB/Syncs/TransformSync/UnparentedBaseTransformSync.cs index cc3aeb77..ae91b965 100644 --- a/QSB/Syncs/TransformSync/UnparentedBaseTransformSync.cs +++ b/QSB/Syncs/TransformSync/UnparentedBaseTransformSync.cs @@ -210,11 +210,13 @@ namespace QSB.Syncs.TransformSync _intermediaryTransform.SetReferenceTransform(transform); } + // TODO : remove .Distance private Vector3 SmartSmoothDamp(Vector3 currentPosition, Vector3 targetPosition) { var distance = Vector3.Distance(currentPosition, targetPosition); if (distance > _previousDistance + DistanceLeeway) { + DebugLog.DebugWrite($"Warning - {AttachedObject.name} moved too far!", MessageType.Warning); _previousDistance = distance; return targetPosition; }