mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-07-27 21:18:00 -05:00
cos_theta
This commit is contained in:
parent
8020b1ccad
commit
9dddb6517b
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user