Hello,
Comparing Box2D and Chipmunk contact solver, I noticed a small difference in the calculus of the normal and tangent mass factors :
chipmunk uses = 1/b1mass + 1/b2mass + 1/b1i * (r1 x n)² + 1/b2i * (r2 x n)²
which seems the way things are done in the literature.
Whereas box2d uses = 1/b1mass + 1/b2mass + 1/b1i * (r1.r1 - (r1.n)²) + 1/b2i * (r2.r2 - (r2.n)²)
This calculus is a bit more complex since it requires on additional dot product calculus. Is there any reason for this difference ?
Best,
Nicolas
Comparing Box2D and Chipmunk contact solver, I noticed a small difference in the calculus of the normal and tangent mass factors :
chipmunk uses = 1/b1mass + 1/b2mass + 1/b1i * (r1 x n)² + 1/b2i * (r2 x n)²
which seems the way things are done in the literature.
Whereas box2d uses = 1/b1mass + 1/b2mass + 1/b1i * (r1.r1 - (r1.n)²) + 1/b2i * (r2.r2 - (r2.n)²)
This calculus is a bit more complex since it requires on additional dot product calculus. Is there any reason for this difference ?
Best,
Nicolas