mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +02:00
Improved comment about limitation of collision check.
This commit is contained in:
parent
ee4733d0bd
commit
50d864901e
1 changed files with 4 additions and 1 deletions
|
@ -477,7 +477,10 @@ bool Model::findSphereCollision(const glm::vec3& penetratorCenter, float penetra
|
|||
if (findSphereCapsuleConePenetration(relativeCenter, penetratorRadius, start, end,
|
||||
startRadius, endRadius, bonePenetration)) {
|
||||
totalPenetration = addPenetrations(totalPenetration, bonePenetration);
|
||||
// TODO: Andrew to try to keep the joint furthest toward the root
|
||||
// BUG: we currently overwrite the jointIndex with the last one found
|
||||
// which can cause incorrect collisions when colliding against more than
|
||||
// one joint.
|
||||
// TODO: fix this.
|
||||
jointIndex = i;
|
||||
}
|
||||
outerContinue: ;
|
||||
|
|
Loading…
Reference in a new issue