diff --git a/sources/reactphysics3d/constraint/Contact.cpp b/sources/reactphysics3d/constraint/Contact.cpp index 0b9a24ac..331f958f 100644 --- a/sources/reactphysics3d/constraint/Contact.cpp +++ b/sources/reactphysics3d/constraint/Contact.cpp @@ -24,8 +24,9 @@ using namespace reactphysics3d; // Constructor -Contact::Contact(Body* const body1, Body* const body2, const Vector3D& normalVector, const Time& time) - :Constraint(body1, body2), normalVector(normalVector), time(time) { +Contact::Contact(Body* const body1, Body* const body2, const Vector3D& normal, + const std::vector& points) + :Constraint(body1, body2), normal(normal) { } diff --git a/sources/reactphysics3d/constraint/Contact.h b/sources/reactphysics3d/constraint/Contact.h index 584ada46..613eb752 100644 --- a/sources/reactphysics3d/constraint/Contact.h +++ b/sources/reactphysics3d/constraint/Contact.h @@ -38,26 +38,21 @@ namespace reactphysics3d { */ class Contact : public Constraint { private : - Vector3D normal; // Normal vector of the contact - std::vector points; + Vector3D normal; // Normal vector of the contact + std::vector points; // Contact points public : - Contact(Body* const body1, Body* const body2, const Vector3D& normalVector, const Time& time); // Constructor - virtual ~Contact(); // Destructor + Contact(Body* const body1, Body* const body2, const Vector3D& normal, + const std::vector& points); // Constructor + virtual ~Contact(); // Destructor - Vector3D getNormalVector() const; // Return the normal vector of the contact - Time getTime() const; // Return the time of contact + Vector3D getNormal() const; // Return the normal vector of the contact }; // Return the normal vector of the contact -inline Vector3D Contact::getNormalVector() const { - return normalVector; -} - -// Return the time of contact -inline Time Contact::getTime() const { - return time; +inline Vector3D Contact::getNormal() const { + return normal; } } // End of the ReactPhysics3D namespace