[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);
/// Destructor
~ProxyShape();
virtual ~ProxyShape();
/// Return the collision shape
const CollisionShape* getCollisionShape() const;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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