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);