From f17bac5b036f9a66b7a83b1db8a2daad65f71f5f Mon Sep 17 00:00:00 2001 From: ousttrue Date: Tue, 25 Oct 2022 21:52:19 +0900 Subject: [PATCH] =?UTF-8?q?FastSpringBoneService.ManualUpdate=20=E3=81=AB?= =?UTF-8?q?=20deltaTime=20=E5=BC=95=E3=81=8D=E6=95=B0=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FastSpringBone/System/FastSpringBoneScheduler.cs | 4 ++-- .../Runtime/FastSpringBone/System/FastSpringBoneService.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/VRM10/Runtime/FastSpringBone/System/FastSpringBoneScheduler.cs b/Assets/VRM10/Runtime/FastSpringBone/System/FastSpringBoneScheduler.cs index 014de66b6..55f1f8316 100644 --- a/Assets/VRM10/Runtime/FastSpringBone/System/FastSpringBoneScheduler.cs +++ b/Assets/VRM10/Runtime/FastSpringBone/System/FastSpringBoneScheduler.cs @@ -22,7 +22,7 @@ namespace UniVRM10.FastSpringBones.System /// 4. PushTransformJob /// /// - public JobHandle Schedule() + public JobHandle Schedule(float deltaTime) { var handle0 = _bufferCombiner.ReconstructIfDirty(default); if (!_bufferCombiner.HasBuffer) @@ -42,7 +42,7 @@ namespace UniVRM10.FastSpringBones.System Logics = _bufferCombiner.Logics, Springs = _bufferCombiner.Springs, Transforms = _bufferCombiner.Transforms, - DeltaTime = Time.deltaTime, + DeltaTime = deltaTime, }.Schedule(_bufferCombiner.Springs.Length, 1, handle1); var handle3 = new PushTransformJob diff --git a/Assets/VRM10/Runtime/FastSpringBone/System/FastSpringBoneService.cs b/Assets/VRM10/Runtime/FastSpringBone/System/FastSpringBoneService.cs index 143b44d2b..993e786f9 100644 --- a/Assets/VRM10/Runtime/FastSpringBone/System/FastSpringBoneService.cs +++ b/Assets/VRM10/Runtime/FastSpringBone/System/FastSpringBoneService.cs @@ -85,17 +85,17 @@ namespace UniVRM10.FastSpringBones.System { if (UpdateType == UpdateTypes.LateUpdate) { - _fastSpringBoneScheduler.Schedule().Complete(); + _fastSpringBoneScheduler.Schedule(Time.deltaTime).Complete(); } } - public void ManualUpdate() + public void ManualUpdate(float deltaTime) { if (UpdateType != UpdateTypes.Manual) { throw new global::System.ArgumentException("require UpdateTypes.None"); } - _fastSpringBoneScheduler.Schedule().Complete(); + _fastSpringBoneScheduler.Schedule(deltaTime).Complete(); } } } \ No newline at end of file