
19.2 C 479
accumulatedAcc.add(force.multiply(inverseMass));
which tends to make code much more verbose and less clear (particularly in some
of the very complex collision response algorithms where we saw many operators in a
single line).
On the other hand, in ActionScript, once you’ve decided to make a method call,
there is no additional penalty for having virtual methods. That means structures such
as the polymorphic
ContactGenerator and ForceGenerator could be replicated in
various kinds of RigidBody, Particle,orevenContact—classes for which I did not
use virtual methods in C++. This makes some kinds of programming much clearer.
The fireworks demo, for ...