Position based dynamics collisions
Posted: Sat Aug 30, 2008 2:51 am
Hi there,
I'm currently implementing a version of the Position Based Dynamics paper by Mueller. However, I'm having some problems with the collision constraint they're using ( C = q*n - h ), mainly that I'm apparently somewhat mixed up in my hand and just can't manage to find the correct gradients for the function.
For the single vertex it's pretty obvious that the gradient is the normal of the triangles, however the gradients of the triangle vertices are not so clear. I tried calculating them but somehow I always mess up somewhere (i.e. it doesn't match numerically calculated gradients I'm using for testing).
It would be great if someone could help me out on this.
I'm currently implementing a version of the Position Based Dynamics paper by Mueller. However, I'm having some problems with the collision constraint they're using ( C = q*n - h ), mainly that I'm apparently somewhat mixed up in my hand and just can't manage to find the correct gradients for the function.
For the single vertex it's pretty obvious that the gradient is the normal of the triangles, however the gradients of the triangle vertices are not so clear. I tried calculating them but somehow I always mess up somewhere (i.e. it doesn't match numerically calculated gradients I'm using for testing).
It would be great if someone could help me out on this.