add TODO about optimizing character ray tracing

This commit is contained in:
Andrew Meadows 2018-05-31 10:21:14 -07:00
parent 0a7870d5f3
commit c2f5d19ddb

View file

@ -69,6 +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) {
// TODO: we need to call btGhostObject::rayTest() here to reap the benefit of btGhostObject's optimizations
_world->rayTest(start, end, result); _world->rayTest(start, end, result);
} }
return result.hasHit(); return result.hasHit();