From 0f338a0b767f0ed85bebacd08aa3be8e11aef171 Mon Sep 17 00:00:00 2001 From: momoma-null Date: Fri, 8 Aug 2025 15:02:16 +0900 Subject: [PATCH] =?UTF-8?q?IVrm10SpringBoneRuntime=E3=81=AEProcess?= =?UTF-8?q?=E9=96=A2=E6=95=B0=E3=81=ABdeltaTime=E5=BC=95=E6=95=B0=E3=82=92?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Vrm10Runtime/Springbone/IVrm10SpringBoneRuntime.cs | 2 +- .../Vrm10Runtime/Springbone/Vrm10FastSpringboneRuntime.cs | 2 +- .../Springbone/Vrm10FastSpringboneRuntimeStandalone.cs | 4 ++-- .../Vrm10Runtime/Springbone/Vrm10NopSpringboneRuntime.cs | 2 +- .../VRM10/Runtime/Components/Vrm10Runtime/Vrm10Runtime.cs | 2 +- .../ClothSample/ClothWarp/Runtime/ClothWarpRuntime.cs | 7 +------ .../ClothWarp/Runtime/Jobs/ClothWarpJobRuntime.cs | 5 ----- 7 files changed, 7 insertions(+), 17 deletions(-) diff --git a/Assets/VRM10/Runtime/Components/Vrm10Runtime/Springbone/IVrm10SpringBoneRuntime.cs b/Assets/VRM10/Runtime/Components/Vrm10Runtime/Springbone/IVrm10SpringBoneRuntime.cs index 4a962499e..b45f1ae7e 100644 --- a/Assets/VRM10/Runtime/Components/Vrm10Runtime/Springbone/IVrm10SpringBoneRuntime.cs +++ b/Assets/VRM10/Runtime/Components/Vrm10Runtime/Springbone/IVrm10SpringBoneRuntime.cs @@ -43,7 +43,7 @@ namespace UniVRM10 /// /// 毎フレーム Vrm10Runtime.Process から呼ばれる。 /// - public void Process(); + public void Process(float deltaTime); /// /// from Vrm10Instance.OnDrawGizmosSelected diff --git a/Assets/VRM10/Runtime/Components/Vrm10Runtime/Springbone/Vrm10FastSpringboneRuntime.cs b/Assets/VRM10/Runtime/Components/Vrm10Runtime/Springbone/Vrm10FastSpringboneRuntime.cs index 6dc1761e0..51a14b221 100644 --- a/Assets/VRM10/Runtime/Components/Vrm10Runtime/Springbone/Vrm10FastSpringboneRuntime.cs +++ b/Assets/VRM10/Runtime/Components/Vrm10Runtime/Springbone/Vrm10FastSpringboneRuntime.cs @@ -112,7 +112,7 @@ namespace UniVRM10 m_fastSpringBoneService.BufferCombiner.InitializeJointsLocalRotation(m_fastSpringBoneBuffer); } - public void Process() + public void Process(float deltaTime) { // FastSpringBoneService が実行するので何もしない } diff --git a/Assets/VRM10/Runtime/Components/Vrm10Runtime/Springbone/Vrm10FastSpringboneRuntimeStandalone.cs b/Assets/VRM10/Runtime/Components/Vrm10Runtime/Springbone/Vrm10FastSpringboneRuntimeStandalone.cs index 12e151e07..c2fa75295 100644 --- a/Assets/VRM10/Runtime/Components/Vrm10Runtime/Springbone/Vrm10FastSpringboneRuntimeStandalone.cs +++ b/Assets/VRM10/Runtime/Components/Vrm10Runtime/Springbone/Vrm10FastSpringboneRuntimeStandalone.cs @@ -118,9 +118,9 @@ namespace UniVRM10 m_bufferCombiner.InitializeJointsLocalRotation(m_fastSpringBoneBuffer); } - public void Process() + public void Process(float deltaTime) { - m_fastSpringBoneScheduler.Schedule(Time.deltaTime).Complete(); + m_fastSpringBoneScheduler.Schedule(deltaTime).Complete(); } public void DrawGizmos() diff --git a/Assets/VRM10/Runtime/Components/Vrm10Runtime/Springbone/Vrm10NopSpringboneRuntime.cs b/Assets/VRM10/Runtime/Components/Vrm10Runtime/Springbone/Vrm10NopSpringboneRuntime.cs index 040b0b9de..f14e1e41e 100644 --- a/Assets/VRM10/Runtime/Components/Vrm10Runtime/Springbone/Vrm10NopSpringboneRuntime.cs +++ b/Assets/VRM10/Runtime/Components/Vrm10Runtime/Springbone/Vrm10NopSpringboneRuntime.cs @@ -20,7 +20,7 @@ namespace UniVRM10 return Task.CompletedTask; } - public void Process() + public void Process(float deltaTime) { } diff --git a/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10Runtime.cs b/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10Runtime.cs index 5a800d2e1..e702496b1 100644 --- a/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10Runtime.cs +++ b/Assets/VRM10/Runtime/Components/Vrm10Runtime/Vrm10Runtime.cs @@ -156,7 +156,7 @@ namespace UniVRM10 Expression.Process(eyeDirection); // 6. SpringBone - SpringBone.Process(); + SpringBone.Process(Time.deltaTime); } } } \ No newline at end of file diff --git a/Assets/VRM10_Samples/ClothSample/ClothWarp/Runtime/ClothWarpRuntime.cs b/Assets/VRM10_Samples/ClothSample/ClothWarp/Runtime/ClothWarpRuntime.cs index 883af31c2..a36b11498 100644 --- a/Assets/VRM10_Samples/ClothSample/ClothWarp/Runtime/ClothWarpRuntime.cs +++ b/Assets/VRM10_Samples/ClothSample/ClothWarp/Runtime/ClothWarpRuntime.cs @@ -135,12 +135,7 @@ namespace UniVRM10.ClothWarp // } } - public void Process() - { - Process(Time.deltaTime); - } - - void Process(float deltaTime) + public void Process(float deltaTime) { if (!_initialized) { diff --git a/Assets/VRM10_Samples/ClothSample/ClothWarp/Runtime/Jobs/ClothWarpJobRuntime.cs b/Assets/VRM10_Samples/ClothSample/ClothWarp/Runtime/Jobs/ClothWarpJobRuntime.cs index 8e2181786..294216ad1 100644 --- a/Assets/VRM10_Samples/ClothSample/ClothWarp/Runtime/Jobs/ClothWarpJobRuntime.cs +++ b/Assets/VRM10_Samples/ClothSample/ClothWarp/Runtime/Jobs/ClothWarpJobRuntime.cs @@ -408,11 +408,6 @@ namespace UniVRM10.ClothWarp.Jobs } } - public void Process() - { - Process(Time.deltaTime); - } - public void Process(float deltaTime) { var frame = new FrameInfo(deltaTime, Vector3.zero);