git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@225 92aac97c-a6ce-11dd-a772-7fcde58d38e6

This commit is contained in:
chappuis.daniel 2009-12-12 21:27:22 +00:00
parent f9f67b7532
commit efb07cade3
2 changed files with 2 additions and 3 deletions

View File

@ -26,7 +26,7 @@ using namespace reactphysics3d;
// Constructor
Contact::Contact(Body* const body1, Body* const body2, const Vector3D& normal,
const std::vector<const Vector3D* const>& points)
:Constraint(body1, body2), normal(normal) {
:Constraint(body1, body2), normal(normal), points(points) {
}

View File

@ -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<const Vector3D* const> 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