ConvexResultCallback::hasHit() and RayResultCallback::hasHit() are both const now.

Developers need to fix their derived classes too!
Thanks to bcsanches, http://code.google.com/p/bullet/issues/detail?id=81&can=1
This commit is contained in:
erwin.coumans
2008-08-29 05:16:05 +00:00
parent 66861ad334
commit 8340a77aa8

View File

@@ -183,7 +183,7 @@ public:
virtual ~RayResultCallback()
{
}
bool hasHit()
bool hasHit() const
{
return (m_collisionObject != 0);
}
@@ -283,7 +283,7 @@ public:
{
}
bool hasHit()
bool hasHit() const
{
return (m_closestHitFraction < btScalar(1.));
}