From 10cc2ae66bf2cc2f9b596f07ca350de29754bcf5 Mon Sep 17 00:00:00 2001 From: Levi Armstrong Date: Wed, 15 Apr 2020 14:48:11 -0500 Subject: [PATCH 1/2] Make computeAABB virtual in CollisionObject --- include/fcl/narrowphase/collision_object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fcl/narrowphase/collision_object.h b/include/fcl/narrowphase/collision_object.h index bef211a49..814ba2d8a 100644 --- a/include/fcl/narrowphase/collision_object.h +++ b/include/fcl/narrowphase/collision_object.h @@ -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; From 95f4a0c43ae71cdf3c827aef9f0414b5bda3da99 Mon Sep 17 00:00:00 2001 From: Levi Armstrong Date: Wed, 15 Apr 2020 19:10:35 -0500 Subject: [PATCH 2/2] Make destructor virtual for Collision Object --- include/fcl/narrowphase/collision_object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fcl/narrowphase/collision_object.h b/include/fcl/narrowphase/collision_object.h index 814ba2d8a..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;