Update softbody_contact_solver.cpp
This commit is contained in:
parent
4980e3c7f0
commit
c972052f3b
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user