1 #ifndef BulletAllHitsRayCallback_h 2 #define BulletAllHitsRayCallback_h 26 #include <QScopedPointer> 50 const bool cullBackfacers =
true);
64 virtual btScalar
addSingleResult(btCollisionWorld::LocalRayResult &rayResult,
65 bool normalInWorldSpace);
virtual ~BulletAllHitsRayCallback()
Destroy this callback.
virtual btScalar addSingleResult(btCollisionWorld::LocalRayResult &rayResult, bool normalInWorldSpace)
Add a local intersection result to this callback during ray casting.
Bullet ray tracing callback to return all intersections along a ray's path.
btVector3 observer() const
Return the beginning of the ray.
btVector3 lookdir() const
Return the end of the ray.
Bullet ray tracing callback for closest hit on target surface.
const BulletClosestRayCallback & hit(const int &index=0) const
Return a callback for the intersection at a given index.
QVector< BulletClosestRayCallback > m_rayHits
List of ray hits.
int size() const
Returns the number of intersections found.
Namespace for ISIS/Bullet specific routines.
bool isValid() const
Checks if the callback is valid/has a valid intersection.
BulletAllHitsRayCallback()
Default constructor.