• R/O
  • SSH
  • HTTPS

mmdx: Commit


Commit MetaInfo

Revision921 (tree)
Time2012-01-09 22:38:38
Authorwilfrem

Log Message

仮修正分。なぜか右足、左足にy軸回転制限いれたら上手くいった

Change Summary

Incremental Difference

--- trunk/MikuMikuDanceCore/Misc/CCDSolver.cs (revision 920)
+++ trunk/MikuMikuDanceCore/Misc/CCDSolver.cs (revision 921)
@@ -102,6 +102,10 @@
102102 {
103103 // 回転軸
104104 Vector3 rotationAxis = Vector3.Cross(basis2Effector, basis2Target);
105+ if (node.Name == "左足" || node.Name == "右足")
106+ {
107+ rotationAxis.Y = 0;
108+ }
105109 #if DEBUG
106110 if (MMDXMath.CheckNaN(rotationAxis))
107111 throw new Exception();
Show on old repository browser