[DEBUG] correct missing some virtual

This commit is contained in:
Edouard DUPIN 2017-06-07 22:03:00 +02:00
parent e3ab17461d
commit 64b20b4963
8 changed files with 10 additions and 6 deletions

View File

@ -102,7 +102,7 @@ class ProxyShape {
const Transform& transform, decimal mass); const Transform& transform, decimal mass);
/// Destructor /// Destructor
~ProxyShape(); virtual ~ProxyShape();
/// Return the collision shape /// Return the collision shape
const CollisionShape* getCollisionShape() const; const CollisionShape* getCollisionShape() const;

View File

@ -88,7 +88,7 @@ struct RaycastInfo {
} }
/// Destructor /// Destructor
~RaycastInfo() { virtual ~RaycastInfo() {
} }
}; };

View File

@ -54,7 +54,7 @@ class TriangleMesh {
TriangleMesh(); TriangleMesh();
/// Destructor /// Destructor
~TriangleMesh(); virtual ~TriangleMesh();
/// Add a subpart of the mesh /// Add a subpart of the mesh
void addSubpart(TriangleVertexArray* triangleVertexArray); void addSubpart(TriangleVertexArray* triangleVertexArray);

View File

@ -87,7 +87,7 @@ class TriangleVertexArray {
VertexDataType vertexDataType, IndexDataType indexDataType); VertexDataType vertexDataType, IndexDataType indexDataType);
/// Destructor /// Destructor
~TriangleVertexArray(); virtual ~TriangleVertexArray();
/// Return the vertex data type /// Return the vertex data type
VertexDataType getVertexDataType() const; VertexDataType getVertexDataType() const;

View File

@ -176,7 +176,7 @@ class BroadPhaseAlgorithm {
BroadPhaseAlgorithm(CollisionDetection& collisionDetection); BroadPhaseAlgorithm(CollisionDetection& collisionDetection);
/// Destructor /// Destructor
~BroadPhaseAlgorithm(); virtual ~BroadPhaseAlgorithm();
/// Add a proxy collision shape into the broad-phase collision detection /// Add a proxy collision shape into the broad-phase collision detection
void addProxyCollisionShape(ProxyShape* proxyShape, const AABB& aabb); void addProxyCollisionShape(ProxyShape* proxyShape, const AABB& aabb);

View File

@ -97,6 +97,7 @@ struct TreeNode {
class DynamicAABBTreeOverlapCallback { class DynamicAABBTreeOverlapCallback {
public : public :
virtual ~DynamicAABBTreeOverlapCallback() = default;
// Called when a overlapping node has been found during the call to // Called when a overlapping node has been found during the call to
// DynamicAABBTree:reportAllShapesOverlappingWithAABB() // DynamicAABBTree:reportAllShapesOverlappingWithAABB()
@ -111,6 +112,7 @@ class DynamicAABBTreeOverlapCallback {
class DynamicAABBTreeRaycastCallback { class DynamicAABBTreeRaycastCallback {
public: public:
virtual ~DynamicAABBTreeRaycastCallback() = default;
// Called when the AABB of a leaf node is hit by a ray // Called when the AABB of a leaf node is hit by a ray
virtual decimal raycastBroadPhaseShape(int32 nodeId, const Ray& ray)=0; virtual decimal raycastBroadPhaseShape(int32 nodeId, const Ray& ray)=0;
@ -194,7 +196,7 @@ class DynamicAABBTree {
DynamicAABBTree(decimal extraAABBGap = decimal(0.0)); DynamicAABBTree(decimal extraAABBGap = decimal(0.0));
/// Destructor /// Destructor
~DynamicAABBTree(); virtual ~DynamicAABBTree();
/// Add an object into the tree (where node data are two integers) /// Add an object into the tree (where node data are two integers)
int addObject(const AABB& aabb, int32 data1, int32 data2); int addObject(const AABB& aabb, int32 data1, int32 data2);

View File

@ -46,6 +46,7 @@ class CollisionDetection;
class NarrowPhaseCallback { class NarrowPhaseCallback {
public: public:
virtual ~NarrowPhaseCallback() = default;
/// Called by a narrow-phase collision algorithm when a new contact has been found /// Called by a narrow-phase collision algorithm when a new contact has been found
virtual void notifyContact(OverlappingPair* overlappingPair, virtual void notifyContact(OverlappingPair* overlappingPair,

View File

@ -41,6 +41,7 @@ namespace reactphysics3d {
class TriangleCallback { class TriangleCallback {
public: public:
virtual ~TriangleCallback() = default;
/// Report a triangle /// Report a triangle
virtual void testTriangle(const Vector3* trianglePoints)=0; virtual void testTriangle(const Vector3* trianglePoints)=0;