mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 21:03:17 +02:00
Merge pull request #13304 from sabrina-shanman/btghostraytest
Use optimized Bullet raytest function in CharacterGhostObject::rayTest()
This commit is contained in:
commit
87d26a9d86
2 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ bool CharacterGhostObject::rayTest(const btVector3& start,
|
||||||
const btVector3& end,
|
const btVector3& end,
|
||||||
CharacterRayResult& result) const {
|
CharacterRayResult& result) const {
|
||||||
if (_world && _inWorld) {
|
if (_world && _inWorld) {
|
||||||
_world->rayTest(start, end, result);
|
btGhostObject::rayTest(start, end, result);
|
||||||
}
|
}
|
||||||
return result.hasHit();
|
return result.hasHit();
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
class CharacterGhostShape;
|
class CharacterGhostShape;
|
||||||
|
|
||||||
class CharacterGhostObject : public btPairCachingGhostObject {
|
class CharacterGhostObject : public btGhostObject {
|
||||||
public:
|
public:
|
||||||
CharacterGhostObject() { }
|
CharacterGhostObject() { }
|
||||||
~CharacterGhostObject();
|
~CharacterGhostObject();
|
||||||
|
|
Loading…
Reference in a new issue