mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 07:37:28 +02:00
HACK so legless avatars don't drag their knuckles
This commit is contained in:
parent
4a40781e2f
commit
614c0be59a
1 changed files with 4 additions and 0 deletions
|
@ -558,6 +558,10 @@ void SkeletonModel::computeBoundingShape() {
|
||||||
totalExtents.addPoint(transformedPoint + radius);
|
totalExtents.addPoint(transformedPoint + radius);
|
||||||
totalExtents.addPoint(transformedPoint - radius);
|
totalExtents.addPoint(transformedPoint - radius);
|
||||||
}
|
}
|
||||||
|
// HACK so that default legless robot doesn't knuckle-drag
|
||||||
|
if (shapeInfo.points.size() == 0 && (state.getName() == "LeftFoot" || state.getName() == "RightFoot")) {
|
||||||
|
totalExtents.addPoint(extractTranslation(jointTransform));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// compute bounding shape parameters
|
// compute bounding shape parameters
|
||||||
|
|
Loading…
Reference in a new issue