Skip to content

Commit 8515a6e

Browse files
authored
Merge pull request #31 from qcbf/patch-1
fix frcition invalid
2 parents 8ab7425 + 1838480 commit 8515a6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/box2dx/Box2D.NetStandard/Dynamics/Contacts/ContactSolver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ public void SolveVelocityConstraints()
326326
// Solve normal constraints
327327
if (c.PointCount == 1)
328328
{
329-
ContactConstraintPoint ccp = c.Points[0];
329+
ref ContactConstraintPoint ccp = ref c.Points[0];
330330

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

0 commit comments

Comments
 (0)