
350 Chapter 14 Collision Resolution
is the contact normal, as we saw when creating the basis matrix. So we can replace the
full matrix transformation above with code of the form:
real angularComponent = velocityPerUnitImpulse * contactNormal;
There is another way to think of this final step. The velocityPerUnitImpulse is
given in world coordinates. Performing the scalar product is equivalent to finding the
componen t of this value in the direction of the contact normal, where the contact
normal as a vec to r is also given in world coordinates.
It is better, in my opinion, to think in terms of the change of coordinates, because
as we introduce friction ...