git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@245 92aac97c-a6ce-11dd-a772-7fcde58d38e6
This commit is contained in:
parent
4185b2bbee
commit
50ab396882
|
@ -24,8 +24,8 @@
|
|||
using namespace reactphysics3d;
|
||||
|
||||
// Constructor
|
||||
Contact::Contact(Body* const body1, Body* const body2, const Vector3D& normal, const std::vector<Vector3D>& points)
|
||||
:Constraint(body1, body2), normal(normal), points(points) {
|
||||
Contact::Contact(Body* const body1, Body* const body2, const Vector3D& normal, double penetrationDepth, const std::vector<Vector3D>& points)
|
||||
:Constraint(body1, body2), normal(normal), penetrationDepth(penetrationDepth), points(points){
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -39,11 +39,12 @@ namespace reactphysics3d {
|
|||
class Contact : public Constraint {
|
||||
private :
|
||||
Vector3D normal; // Normal vector of the contact (From body1 toward body2)
|
||||
std::vector<Vector3D> points; // Contact points
|
||||
double penetrationDepth; // Penetration depth
|
||||
std::vector<Vector3D> points; // Contact points
|
||||
|
||||
public :
|
||||
Contact(Body* const body1, Body* const body2, const Vector3D& normal, const std::vector<Vector3D>& points); // Constructor
|
||||
virtual ~Contact(); // Destructor
|
||||
Contact(Body* const body1, Body* const body2, const Vector3D& normal, double penetrationDepth, const std::vector<Vector3D>& points); // Constructor
|
||||
virtual ~Contact(); // Destructor
|
||||
|
||||
Vector3D getNormal() const; // Return the normal vector of the contact
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user