Skip to content

Commit

Permalink
clean up rope joint
Browse files Browse the repository at this point in the history
  • Loading branch information
AlmasB committed Jan 5, 2024
1 parent c8e69df commit dba0749
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,7 @@ public void initVelocityConstraints(final SolverData data) {
pool.pushRot(2);
pool.pushVec2(1);

// data.velocities[m_indexA].v = vA;
data.velocities[m_indexA].w = wA;
// data.velocities[m_indexB].v = vB;
data.velocities[m_indexB].w = wB;
}

Expand Down Expand Up @@ -179,9 +177,7 @@ public void solveVelocityConstraints(final SolverData data) {

pool.pushVec2(3);

// data.velocities[m_indexA].v = vA;
data.velocities[m_indexA].w = wA;
// data.velocities[m_indexB].v = vB;
data.velocities[m_indexB].w = wB;
}

Expand Down Expand Up @@ -226,9 +222,7 @@ public boolean solvePositionConstraints(final SolverData data) {
pool.pushRot(2);
pool.pushVec2(4);

// data.positions[m_indexA].c = cA;
data.positions[m_indexA].a = aA;
// data.positions[m_indexB].c = cB;
data.positions[m_indexB].a = aB;

return length - m_maxLength < JBoxSettings.linearSlop;
Expand Down

0 comments on commit dba0749

Please sign in to comment.