Normand Briere
2019-09-18 f9325048496d7cdbcad233f8a6b84c88e79adcc2
Mocap.java
....@@ -969,7 +969,7 @@
969969
970970 TranslateData(offset);
971971
972
- link2master = true; // mocap position
972
+ link2support = true; // mocap position
973973
974974 setPose(frame);
975975
....@@ -996,9 +996,9 @@
996996 new cVector(path.get(i).toParent[3][0], path.get(i).toParent[3][1], path.get(i).toParent[3][2]));
997997 }
998998
999
- get(0).link2master = path.size() > 1; // hip orientation
999
+ get(0).link2support = path.size() > 1; // hip orientation
10001000
1001
- if (get(0).link2master)
1001
+ if (get(0).link2support)
10021002 {
10031003 rotateonce = 2;
10041004 }
....@@ -1160,7 +1160,7 @@
11601160 {
11611161 super(s);
11621162
1163
- link2master = true;
1163
+ link2support = true;
11641164 }
11651165
11661166 // SET SUPPORT
....@@ -1427,7 +1427,7 @@
14271427 double w = 0.00015;
14281428
14291429 //if (!sourcenode.link2master) // strong pin on floor
1430
- if (parent.link2master) // strong pin on floor
1430
+ if (parent.link2support) // strong pin on floor
14311431 {
14321432 w = 0.005; // .001;
14331433 }
....@@ -1641,7 +1641,7 @@
16411641 // sourcenode.parent.toParent[3][1] = ground - floor.y;
16421642 // sourcenode.parent.toParent[3][2] += groundz - floor.z;
16431643 // sourcenode.parent.toParent[3][1] = K * (ground - floor.y) + (1 - K) * oldposy;
1644
- if (footcontact && (sourcenode.parent != null && !sourcenode.parent.link2master)) // strong pin on floor
1644
+ if (footcontact && (sourcenode.parent != null && !sourcenode.parent.link2support)) // strong pin on floor
16451645 {
16461646 v0.x = groundx - floor.x;
16471647 v0.y = 0; // groundx - floor.x;
....@@ -2006,7 +2006,7 @@
20062006 // if (sourcenode.link2master)
20072007 // if (goalx != 0 || goalz != 0)
20082008 // K = 0.02; // .0625;
2009
- if (parent.link2master) // strong pin on floor
2009
+ if (parent.link2support) // strong pin on floor
20102010 {
20112011 K = 0.05; // 0.02;
20122012 }
....@@ -2423,9 +2423,9 @@
24232423 // SetBreakPoint(get(0).toParent[0], 0);
24242424 // }
24252425
2426
- boolean setrotation = get(0).link2master && !firsttimeafterload && frame > 0;
2426
+ boolean setrotation = get(0).link2support && !firsttimeafterload && frame > 0;
24272427 boolean setposition = sourcenode != null && // sourcenode.parent != null && // july 2014
2428
- sourcenode./*parent.*/link2master && !firsttimeafterload && frame > 0;
2428
+ sourcenode./*parent.*/link2support && !firsttimeafterload && frame > 0;
24292429
24302430 // cVector centroid = new cVector();
24312431 // cVector floor = new cVector();
....@@ -2858,7 +2858,7 @@
28582858
28592859 // set translation
28602860 // (currently only possible for root bone! see mocapdata.com data)
2861
- if (bone._isRoot && link2master) // && !GetFileRoot().link2master)
2861
+ if (bone._isRoot && link2support) // && !GetFileRoot().link2master)
28622862 {
28632863 if (hasTranslation) // && _translationEnabled)
28642864 {