m0lentum / starframe

A game engine for physics-y sidescrolling 2D games (WIP)
MIT License
63 stars 1 forks source link

Block solver for multi-constraint joints #52

Closed m0lentum closed 2 years ago

m0lentum commented 3 years ago

Many joint types (and contacts with two contact points!) require more than one constraint (up to three in 2D as there are three degrees of freedom, but possibly more with inequality constraints I think?), which should ideally be solved simultaneously for improved convergence and stability.

XPBD note: Joints require fewer constraints now, so this is less impactful, but should still be nice for double contacts. In particular, this should fix the issue with things sometimes getting stuck on walls due to friction

m0lentum commented 2 years ago

Closing all issues, moving planning to my notes repo for more freely writing down ideas