@@ -272,7 +272,7 @@ void FAnimNode_VrmSpringBone::ConditionalDebugDraw(FPrimitiveDrawInterface* PDI,
272
272
273
273
float r = (c.radius ) * 100 .f ;
274
274
auto offs = c.offset ;
275
- offs.Set (offs.X , offs.Y , - offs.Z );
275
+ offs.Set (offs.X , - offs.Z , offs.Y );
276
276
offs *= 100 ;
277
277
offs = t.TransformVector (offs);
278
278
@@ -286,7 +286,7 @@ void FAnimNode_VrmSpringBone::ConditionalDebugDraw(FPrimitiveDrawInterface* PDI,
286
286
else {
287
287
288
288
auto tail = c.tail ;
289
- tail.Set (tail.X , tail.Y , - tail.Z );
289
+ tail.Set (tail.X , - tail.Z , tail.Y );
290
290
tail *= 100 ;
291
291
tail = t.TransformVector (tail);
292
292
@@ -362,7 +362,8 @@ void FAnimNode_VrmSpringBone::ConditionalDebugDraw(FPrimitiveDrawInterface* PDI,
362
362
for (const auto &col : colMeta.collider ) {
363
363
float r = (col.radius ) * 100 .f ;
364
364
auto offs = col.offset ;
365
- offs.Set (-offs.X , offs.Z , offs.Y );
365
+ // offs.Set(offs.X, -offs.Z, offs.Y); // 本来はこれが正しいが、VRM0の座標が間違っている
366
+ offs.Set (-offs.X , offs.Z , offs.Y ); // VRM0の仕様としては これ
366
367
offs *= 100 ;
367
368
FVector v = t.TransformPosition (offs);
368
369
0 commit comments