Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Position based dynamics example (Matthias Müller) [closed]

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

like image 345
pollux Avatar asked Apr 01 '11 18:04

pollux


2 Answers

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.

like image 184
Erwin Coumans Avatar answered Oct 22 '22 05:10

Erwin Coumans


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.

like image 1
teodron Avatar answered Oct 22 '22 04:10

teodron