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

This commit is contained in:
chappuis.daniel 2009-12-23 10:06:52 +00:00
parent 325c80dd49
commit 747fab4cc4
2 changed files with 3 additions and 4 deletions

View File

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

View File

@ -39,11 +39,11 @@ namespace reactphysics3d {
class Contact : public Constraint { class Contact : public Constraint {
private : private :
Vector3D normal; // Normal vector of the contact (From body1 toward body2) Vector3D normal; // Normal vector of the contact (From body1 toward body2)
std::vector<const Vector3D* const> points; // Contact points std::vector<Vector3D> points; // Contact points
public : public :
Contact(Body* const body1, Body* const body2, const Vector3D& normal, Contact(Body* const body1, Body* const body2, const Vector3D& normal,
const std::vector<const Vector3D* const>& points); // Constructor const std::vector<Vector3D>& points); // Constructor
virtual ~Contact(); // Destructor virtual ~Contact(); // Destructor
Vector3D getNormal() const; // Return the normal vector of the contact Vector3D getNormal() const; // Return the normal vector of the contact