From 801feeedaa9323d0622c9f7f3ee3e85a7ace0bab Mon Sep 17 00:00:00 2001 From: ruyo Date: Mon, 17 Jun 2024 22:16:22 +0900 Subject: [PATCH] =?UTF-8?q?VrmSpringBone=20=E3=83=87=E3=83=90=E3=83=83?= =?UTF-8?q?=E3=82=B0=E8=A1=A8=E7=A4=BA=E3=81=8C=E3=81=9A=E3=82=8C=E3=81=A6?= =?UTF-8?q?=E3=81=84=E3=82=8B=E3=81=AE=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/VRM4U/Private/AnimNode_VrmSpringBone.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/VRM4U/Private/AnimNode_VrmSpringBone.cpp b/Source/VRM4U/Private/AnimNode_VrmSpringBone.cpp index 5e662123..97b695de 100644 --- a/Source/VRM4U/Private/AnimNode_VrmSpringBone.cpp +++ b/Source/VRM4U/Private/AnimNode_VrmSpringBone.cpp @@ -272,7 +272,7 @@ void FAnimNode_VrmSpringBone::ConditionalDebugDraw(FPrimitiveDrawInterface* PDI, float r = (c.radius) * 100.f; auto offs = c.offset; - offs.Set(offs.X, offs.Y, -offs.Z); + offs.Set(offs.X, -offs.Z, offs.Y); offs *= 100; offs = t.TransformVector(offs); @@ -286,7 +286,7 @@ void FAnimNode_VrmSpringBone::ConditionalDebugDraw(FPrimitiveDrawInterface* PDI, else { auto tail = c.tail; - tail.Set(tail.X, tail.Y, -tail.Z); + tail.Set(tail.X, -tail.Z, tail.Y); tail *= 100; tail = t.TransformVector(tail); @@ -362,7 +362,8 @@ void FAnimNode_VrmSpringBone::ConditionalDebugDraw(FPrimitiveDrawInterface* PDI, for (const auto &col : colMeta.collider) { float r = (col.radius) * 100.f; auto offs = col.offset; - offs.Set(-offs.X, offs.Z, offs.Y); + //offs.Set(offs.X, -offs.Z, offs.Y); // 本来はこれが正しいが、VRM0の座標が間違っている + offs.Set(-offs.X, offs.Z, offs.Y); // VRM0の仕様としては これ offs *= 100; FVector v = t.TransformPosition(offs);