From e7400a4d9e970f52af5841982f6fa051b716895f Mon Sep 17 00:00:00 2001 From: amandaghassaei <amandaghassaei@gmail.com> Date: Fri, 5 May 2017 13:33:52 -0400 Subject: [PATCH] scale fix --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index d5e457e..dd123f4 100644 --- a/index.html +++ b/index.html @@ -167,7 +167,7 @@ vec3 deltaP = neighborLastPosition-lastPosition+nominalDist; float deltaPLength = length(deltaP); deltaP -= deltaP*(beamMeta[2]/deltaPLength); - nodeError += deltaPLength/length(nominalDist); + nodeError += abs(deltaPLength/length(nominalDist) - 1.0); vec3 deltaV = neighborLastVelocity-lastVelocity; vec3 _force = deltaP*beamMeta[0] + deltaV*beamMeta[1]; -- GitLab