I'm wondering if someone has a code example of position based dynamics with i.e. a spring constraint? I found this paper describing the technique which has some pseudo code, but I would love to see some java/c/c++/as/... code
http://www.matthiasmueller.info/publications/hpbd.pdf
The soft body (and cloth/rope) simulation in the open source Bullet physics library is using position based dynamics, as described by Thomas Jakobsen ( http://www.gamasutra.com/resource_guide/20030121/jacobson_01.shtml) and your paper link by Matthias Mueller.
See http://bullet.googlecode.com for the C++ source code.
There is an updated source on google code that has the more direct implementation of this very idea. It's called the OpenCloth project and it truly is an awesome collection of various approaches neatly and simply implemented.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With