Update softbody_contact_solver.cpp

This commit is contained in:
Irlan 2019-05-14 09:37:25 -03:00
parent 4980e3c7f0
commit c972052f3b

View File

@ -326,7 +326,7 @@ void b3SoftBodyContactSolver::StoreImpulses()
} }
} }
struct b3ClothSolverBodyContactSolverPoint struct b3SoftBodySolverBodyContactSolverPoint
{ {
void Initialize(const b3SoftBodySolverBodyContactPositionConstraint* pc, const b3Transform& xfA, const b3Transform& xfB) void Initialize(const b3SoftBodySolverBodyContactPositionConstraint* pc, const b3Transform& xfA, const b3Transform& xfB)
{ {
@ -386,7 +386,7 @@ bool b3SoftBodyContactSolver::SolveBodyContactPositionConstraints()
xfB.rotation = b3QuatMat33(qB); xfB.rotation = b3QuatMat33(qB);
xfB.position = cB - b3Mul(xfB.rotation, localCenterB); xfB.position = cB - b3Mul(xfB.rotation, localCenterB);
b3ClothSolverBodyContactSolverPoint cpcp; b3SoftBodySolverBodyContactSolverPoint cpcp;
cpcp.Initialize(pc, xfA, xfB); cpcp.Initialize(pc, xfA, xfB);
b3Vec3 normal = cpcp.normal; b3Vec3 normal = cpcp.normal;