From 8b72102583ad86206df4263f7dfc3c45c4fc5bc5 Mon Sep 17 00:00:00 2001 From: Emiliana <38952746+emilianavt@users.noreply.github.com> Date: Sat, 12 Jun 2021 17:47:16 +0200 Subject: [PATCH] Fixed type mismatch for time parameter. --- Unity/OpenSeeInterpolation.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Unity/OpenSeeInterpolation.cs b/Unity/OpenSeeInterpolation.cs index b449504..91980b9 100644 --- a/Unity/OpenSeeInterpolation.cs +++ b/Unity/OpenSeeInterpolation.cs @@ -48,7 +48,7 @@ namespace OpenSee { map[key].UpdateValue(v); } - public void Store(T key, U v, float nowT) { + public void Store(T key, U v, double nowT) { if (!map.ContainsKey(key)) { map.Add(key, new V()); map[key].SetSmoothing(smoothing); @@ -79,8 +79,8 @@ namespace OpenSee { abstract public class InterpolatedValue { private float interpolateT = 0f; private float updateT = 0f; - private float lastT = 0f; - private float currentT = 0f; + private double lastT = 0f; + private double currentT = 0f; private float clamp = 1f; private float smoothing = 0f; private int gotData = 0; @@ -133,7 +133,7 @@ namespace OpenSee { UpdateValue(v, Time.realtimeSinceStartup); } - public void UpdateValue(V v, float nowT) { + public void UpdateValue(V v, double nowT) { if (nowT < 0f) return; lock (this) { @@ -229,4 +229,4 @@ namespace OpenSee { return 0f; } } -} \ No newline at end of file +}