XPBD achieves the same stiffness as TGS_NGS in BallAndChain and Bridge scenes using a 2×2 effective mass matrix.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- c
- Domain
- computer-graphics
Research direction
Start by reproducing the BallAndChain and Bridge scenes and comparing XPBD with TGS_NGS. Then inspect the XPBD implementation and the proposed 2×2 effective mass matrix; done means XPBD reaches the same stiffness in both named scenes without regressions.
Written by the indexing model from the issue text.
Description
I found that by using for XPBD:
s2Mat22 K;
K.cx.x = mA + mB + rA.y * rA.y * iA + rB.y * rB.y * iB;
K.cy.x = -rA.y * rA.x * iA - rB.y * rB.x * iB;
K.cx.y = K.cy.x;
K.cy.y = mA + mB + rA.x * rA.x * iA + rB.x * rB.x * iB;
s2Vec2 Impulse = s2MulMV(s2GetInverse22(K),...);
XPBD in the BallAndChain and Bridge scenes can achieve the same stiffness as TGS_NGS.
- Dominant language
- C
- Stars
- 237
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from erincatto/solver2d
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
-
Analytic SolutionsOpen
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Try VBDOpen
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
try doublesOpen
Difficulty 5/5 Over a week Newbie friendliness 20/100
All issues in erincatto/solver2d
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
openvehicles/Open-Vehicle-Monitoring-System-3#1575 ·
Maintainers usually reply within 4 days
-
cryptsetup
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
tursodatabase/libsql#2312 ·
Maintainers usually reply within 11 days
-
Please tag a commitOpen
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100