Skip to content

Commit

Permalink
Merge pull request #31 from qcbf/patch-1
Browse files Browse the repository at this point in the history
fix frcition invalid
  • Loading branch information
HughPH authored Jul 8, 2021
2 parents 8ab7425 + 1838480 commit 8515a6e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public void SolveVelocityConstraints()
// Solve normal constraints
if (c.PointCount == 1)
{
ContactConstraintPoint ccp = c.Points[0];
ref ContactConstraintPoint ccp = ref c.Points[0];

// Relative velocity at contact
Vec2 dv = vB + Vec2.Cross(wB, ccp.RB) - vA - Vec2.Cross(wA, ccp.RA);
Expand Down

0 comments on commit 8515a6e

Please sign in to comment.