mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 23:40:11 +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 {
|
CharacterSweepResult& result) const {
|
||||||
if (_world && _inWorld) {
|
if (_world && _inWorld) {
|
||||||
assert(shape);
|
assert(shape);
|
||||||
|
|
||||||
btScalar allowedPenetration = _world->getDispatchInfo().m_allowedCcdPenetration;
|
btScalar allowedPenetration = _world->getDispatchInfo().m_allowedCcdPenetration;
|
||||||
convexSweepTest(shape, start, end, result, allowedPenetration);
|
convexSweepTest(shape, start, end, result, allowedPenetration);
|
||||||
|
return result.hasHit();
|
||||||
if (result.hasHit()) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue