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:
@@ -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.));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user