bulletphysics/bullet3 — pull request #272 by AndrewMeadows (2014-10-21 23:48:47+00:00)
Title: fix for bug in btRigidBody::appplyImpulse()

There is an inaccuracy in btRigidBody::applyImpulse() that causes an instability in some experimental custom constraints I've been working on. This is a proposed fix.

When an impulse is applied at some relative offset from the RigidBody's center of mass it should be split into its linear and angular components. The bugged implementation of applyImpulse() does not compute the true linear component and instead applies the full impulse at the body's center of mass. The fixed implementation applies only the component of impulse that is parallel to the offset vector.