mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
avoid unecessary branch
This commit is contained in:
parent
61a05eb4d1
commit
49224d9698
1 changed files with 1 additions and 5 deletions
|
@ -204,13 +204,9 @@ bool CharacterGhostObject::sweepTest(
|
|||
CharacterSweepResult& result) const {
|
||||
if (_world && _inWorld) {
|
||||
assert(shape);
|
||||
|
||||
btScalar allowedPenetration = _world->getDispatchInfo().m_allowedCcdPenetration;
|
||||
convexSweepTest(shape, start, end, result, allowedPenetration);
|
||||
|
||||
if (result.hasHit()) {
|
||||
return true;
|
||||
}
|
||||
return result.hasHit();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue