From 927fa6e700745ec1f452fbf01e1041ccbab72aa6 Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Sun, 30 Jun 2024 00:02:16 +0530 Subject: [PATCH] marble smooth better --- src/Marble.hx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Marble.hx b/src/Marble.hx index 60bb88d2..ccbba369 100644 --- a/src/Marble.hx +++ b/src/Marble.hx @@ -2039,13 +2039,13 @@ class Marble extends GameObject { var smooth = 1.0 / (newDt * (newDt * 0.235 * newDt) + newDt + 1.0 + 0.48 * newDt * newDt); this.netSmoothOffset.scale(smooth); var smoothScale = this.netSmoothOffset.lengthSq(); - if (smoothScale < 0.1 || smoothScale > 10.0) + if (smoothScale < 0.01 || smoothScale > 20.0) this.netSmoothOffset.set(0, 0, 0); if (oldPos != null && newPos != null) { var deltaT = physicsAccumulator / 0.032; - if (Net.isClient && !this.controllable) - deltaT *= 0.75; // Don't overshoot + // if (Net.isClient && !this.controllable) + // deltaT *= 0.75; // Don't overshoot var renderPos = Util.lerpThreeVectors(this.oldPos, this.newPos, deltaT); if (Net.isClient) { renderPos.load(renderPos.add(this.netSmoothOffset));