diff --git a/sources/reactphysics3d/constraint/Contact.cpp b/sources/reactphysics3d/constraint/Contact.cpp index 331f958f..0b38b6cf 100644 --- a/sources/reactphysics3d/constraint/Contact.cpp +++ b/sources/reactphysics3d/constraint/Contact.cpp @@ -26,7 +26,7 @@ using namespace reactphysics3d; // Constructor Contact::Contact(Body* const body1, Body* const body2, const Vector3D& normal, const std::vector& points) - :Constraint(body1, body2), normal(normal) { + :Constraint(body1, body2), normal(normal), points(points) { } diff --git a/sources/reactphysics3d/constraint/Contact.h b/sources/reactphysics3d/constraint/Contact.h index 613eb752..7b7d96a8 100644 --- a/sources/reactphysics3d/constraint/Contact.h +++ b/sources/reactphysics3d/constraint/Contact.h @@ -38,7 +38,7 @@ namespace reactphysics3d { */ class Contact : public Constraint { private : - Vector3D normal; // Normal vector of the contact + Vector3D normal; // Normal vector of the contact (From body1 toward body2) std::vector points; // Contact points public : @@ -47,7 +47,6 @@ class Contact : public Constraint { virtual ~Contact(); // Destructor Vector3D getNormal() const; // Return the normal vector of the contact - }; // Return the normal vector of the contact