bilateral contact response for dynamic particles and rigid bodies, test update

This commit is contained in:
Irlan
2018-07-17 22:00:10 -03:00
parent de56fbfe39
commit be76409ffc
5 changed files with 106 additions and 37 deletions

View File

@ -65,6 +65,8 @@ public:
b3FrictionForce() { }
~b3FrictionForce() { }
void SolvePositionConstraints(const b3ClothSolverData* data);
void Apply(const b3ClothSolverData* data);
b3Particle* m_p;
@ -79,14 +81,21 @@ public:
b3Particle* p1;
b3Shape* s2;
float32 s;
// Contact constraint
bool n_active;
b3Vec3 p;
b3Vec3 n;
float32 Fn;
// Friction constraint
bool t1_active, t2_active;
b3Vec3 t1, t2;
float32 Ft1, Ft2;
// Friction force
bool f_active;
b3FrictionForce f;
bool n_active, t1_active, t2_active;
b3Vec3 n, t1, t2;
float32 Fn, Ft1, Ft2;
};
// A cloth particle.