diff --git a/include/fcl/narrowphase/collision_object.h b/include/fcl/narrowphase/collision_object.h index bef211a49..9049047c7 100644 --- a/include/fcl/narrowphase/collision_object.h +++ b/include/fcl/narrowphase/collision_object.h @@ -60,7 +60,7 @@ class FCL_EXPORT CollisionObject const Matrix3& R, const Vector3& T); - ~CollisionObject(); + virtual ~CollisionObject(); /// @brief get the type of the object OBJECT_TYPE getObjectType() const; @@ -72,7 +72,7 @@ class FCL_EXPORT CollisionObject const AABB& getAABB() const; /// @brief compute the AABB in world space - void computeAABB(); + virtual void computeAABB(); /// @brief get user data in object void* getUserData() const;