.. | .. |
---|
969 | 969 | |
---|
970 | 970 | TranslateData(offset); |
---|
971 | 971 | |
---|
972 | | - link2master = true; // mocap position |
---|
| 972 | + link2support = true; // mocap position |
---|
973 | 973 | |
---|
974 | 974 | setPose(frame); |
---|
975 | 975 | |
---|
.. | .. |
---|
996 | 996 | new cVector(path.get(i).toParent[3][0], path.get(i).toParent[3][1], path.get(i).toParent[3][2])); |
---|
997 | 997 | } |
---|
998 | 998 | |
---|
999 | | - get(0).link2master = path.size() > 1; // hip orientation |
---|
| 999 | + get(0).link2support = path.size() > 1; // hip orientation |
---|
1000 | 1000 | |
---|
1001 | | - if (get(0).link2master) |
---|
| 1001 | + if (get(0).link2support) |
---|
1002 | 1002 | { |
---|
1003 | 1003 | rotateonce = 2; |
---|
1004 | 1004 | } |
---|
.. | .. |
---|
1160 | 1160 | { |
---|
1161 | 1161 | super(s); |
---|
1162 | 1162 | |
---|
1163 | | - link2master = true; |
---|
| 1163 | + link2support = true; |
---|
1164 | 1164 | } |
---|
1165 | 1165 | |
---|
1166 | 1166 | // SET SUPPORT |
---|
.. | .. |
---|
1427 | 1427 | double w = 0.00015; |
---|
1428 | 1428 | |
---|
1429 | 1429 | //if (!sourcenode.link2master) // strong pin on floor |
---|
1430 | | - if (parent.link2master) // strong pin on floor |
---|
| 1430 | + if (parent.link2support) // strong pin on floor |
---|
1431 | 1431 | { |
---|
1432 | 1432 | w = 0.005; // .001; |
---|
1433 | 1433 | } |
---|
.. | .. |
---|
1641 | 1641 | // sourcenode.parent.toParent[3][1] = ground - floor.y; |
---|
1642 | 1642 | // sourcenode.parent.toParent[3][2] += groundz - floor.z; |
---|
1643 | 1643 | // 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 |
---|
1645 | 1645 | { |
---|
1646 | 1646 | v0.x = groundx - floor.x; |
---|
1647 | 1647 | v0.y = 0; // groundx - floor.x; |
---|
.. | .. |
---|
2006 | 2006 | // if (sourcenode.link2master) |
---|
2007 | 2007 | // if (goalx != 0 || goalz != 0) |
---|
2008 | 2008 | // K = 0.02; // .0625; |
---|
2009 | | - if (parent.link2master) // strong pin on floor |
---|
| 2009 | + if (parent.link2support) // strong pin on floor |
---|
2010 | 2010 | { |
---|
2011 | 2011 | K = 0.05; // 0.02; |
---|
2012 | 2012 | } |
---|
.. | .. |
---|
2423 | 2423 | // SetBreakPoint(get(0).toParent[0], 0); |
---|
2424 | 2424 | // } |
---|
2425 | 2425 | |
---|
2426 | | - boolean setrotation = get(0).link2master && !firsttimeafterload && frame > 0; |
---|
| 2426 | + boolean setrotation = get(0).link2support && !firsttimeafterload && frame > 0; |
---|
2427 | 2427 | boolean setposition = sourcenode != null && // sourcenode.parent != null && // july 2014 |
---|
2428 | | - sourcenode./*parent.*/link2master && !firsttimeafterload && frame > 0; |
---|
| 2428 | + sourcenode./*parent.*/link2support && !firsttimeafterload && frame > 0; |
---|
2429 | 2429 | |
---|
2430 | 2430 | // cVector centroid = new cVector(); |
---|
2431 | 2431 | // cVector floor = new cVector(); |
---|
.. | .. |
---|
2858 | 2858 | |
---|
2859 | 2859 | // set translation |
---|
2860 | 2860 | // (currently only possible for root bone! see mocapdata.com data) |
---|
2861 | | - if (bone._isRoot && link2master) // && !GetFileRoot().link2master) |
---|
| 2861 | + if (bone._isRoot && link2support) // && !GetFileRoot().link2master) |
---|
2862 | 2862 | { |
---|
2863 | 2863 | if (hasTranslation) // && _translationEnabled) |
---|
2864 | 2864 | { |
---|