mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-26 12:50:40 -05:00
fix TryCollideCapsuleAndSphere
This commit is contained in:
@@ -128,9 +128,9 @@ namespace UniVRM10.ClothWarp.Jobs
|
||||
out LineSegment resolved
|
||||
)
|
||||
{
|
||||
var P = (capsuleTail - capsuleHead).normalized;
|
||||
var P = (capsuleTail - capsuleHead);
|
||||
var Q = b - capsuleHead;
|
||||
var dot = Vector3.Dot(P, Q);
|
||||
var dot = Vector3.Dot(P.normalized, Q);
|
||||
if (dot <= 0)
|
||||
{
|
||||
// head側半球の球判定
|
||||
|
||||
Reference in New Issue
Block a user