Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
ousttrue
2026-09-03 09:57:03 +09:00
committed by GitHub
parent af6847c2c8
commit 9b8886da96

View File

@@ -19,7 +19,7 @@ namespace UniGLTF.SpringBoneJobs
// x・z要素を、tailDirの正弦とjointに設定されたangleの正弦の比を用いてスケールする
var horizontalLengthSquared = 1.0f - tailDir.y * tailDir.y;
if (horizontalLengthSquared == 0.0)
if (horizontalLengthSquared <= 1e-8f)
{
// tailDirがy軸負方向の場合、z軸正方向側を選択する
tailDir.x = 0.0f;