git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@221 92aac97c-a6ce-11dd-a772-7fcde58d38e6
This commit is contained in:
parent
19efd40258
commit
f6e7977c4e
sources/reactphysics3d/constraint
|
@ -38,8 +38,8 @@ namespace reactphysics3d {
|
||||||
*/
|
*/
|
||||||
class Contact : public Constraint {
|
class Contact : public Constraint {
|
||||||
private :
|
private :
|
||||||
Vector3D normalVector; // Normal vector of the contact
|
Vector3D normal; // Normal vector of the contact
|
||||||
Time time; // Time of contact
|
std::vector<const Vector3D* const> points;
|
||||||
|
|
||||||
public :
|
public :
|
||||||
Contact(Body* const body1, Body* const body2, const Vector3D& normalVector, const Time& time); // Constructor
|
Contact(Body* const body1, Body* const body2, const Vector3D& normalVector, const Time& time); // Constructor
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
using namespace reactphysics3d;
|
using namespace reactphysics3d;
|
||||||
|
|
||||||
// Constructor
|
// Constructor
|
||||||
FaceEdgeContact::FaceEdgeContact(Body* const body1, Body* const body2, const Vector3D& normalVector, const Time& time, Segment3D& contactSegment)
|
FaceEdgeContact::FaceEdgeContact(Body* const body1, Body* const body2, const Vector3D& normalVector, const Time& time, const Segment3D& contactSegment)
|
||||||
:Contact(body1, body2, normalVector, time), contactSegment(contactSegment) {
|
:Contact(body1, body2, normalVector, time), contactSegment(contactSegment) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ class FaceEdgeContact : public Contact {
|
||||||
Segment3D contactSegment;
|
Segment3D contactSegment;
|
||||||
|
|
||||||
public :
|
public :
|
||||||
FaceEdgeContact(Body* const body1, Body* const body2, const Vector3D& normalVector, const Time& time, Segment3D& contactSegment); // Constructor
|
FaceEdgeContact(Body* const body1, Body* const body2, const Vector3D& normalVector, const Time& time, const Segment3D& contactSegment); // Constructor
|
||||||
virtual ~FaceEdgeContact(); // Destructor
|
virtual ~FaceEdgeContact(); // Destructor
|
||||||
|
|
||||||
Segment3D getContactSegment() const; // Return the contact segment
|
Segment3D getContactSegment() const; // Return the contact segment
|
||||||
|
|
Loading…
Reference in New Issue
Block a user