cos_theta

This commit is contained in:
ousttrue 2025-07-18 17:32:21 +09:00
parent 8020b1ccad
commit 9dddb6517b

View File

@ -30,7 +30,8 @@ namespace UniGLTF.SpringBoneJobs
}
// tailDirをphi・thetaを用いて再計算する
return new float3(math.sin(theta), math.cos(theta) * math.cos(phi), math.cos(theta) * math.sin(phi));
var cos_theta = math.cos(theta);
return new float3(math.sin(theta), cos_theta * math.cos(phi), cos_theta * math.sin(phi));
}
}
}