From c04723fc3647f89fbf33d221083cca41d04595b7 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Tue, 26 Nov 2024 10:12:28 +0900 Subject: [PATCH] fix GetDelta --- .../ClothSample/RotateParticle/Runtime/Jobs/Collision.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/VRM10_Samples/ClothSample/RotateParticle/Runtime/Jobs/Collision.cs b/Assets/VRM10_Samples/ClothSample/RotateParticle/Runtime/Jobs/Collision.cs index 97a39c93e..0c7b8f078 100644 --- a/Assets/VRM10_Samples/ClothSample/RotateParticle/Runtime/Jobs/Collision.cs +++ b/Assets/VRM10_Samples/ClothSample/RotateParticle/Runtime/Jobs/Collision.cs @@ -48,7 +48,7 @@ namespace RotateParticle.Jobs if (TryCollideCapsuleAndSphere(m.MultiplyPoint(c.offset), m.MultiplyPoint(c.tailOrNormal), c.radius, pos, info.Settings.radius, out var l)) { - pos += l.GetDelta(c.radius + info.Settings.radius); + pos += l.GetDelta(c.radius); } } else @@ -56,7 +56,7 @@ namespace RotateParticle.Jobs if (TryCollideSphereAndSphere(m.MultiplyPoint(c.offset), c.radius, pos, info.Settings.radius, out var l)) { - pos += l.GetDelta(c.radius + info.Settings.radius); + pos += l.GetDelta(c.radius); } } StrandCollision[particleIndex] = pos;