onApplyAccelerationForces method
Implementation
Vector2 onApplyAccelerationForces(
Iterable<Force2D> forces,
Vector2 velocity,
double dt,
) {
return forces.fold<Vector2>(
velocity,
(p, e) => e.transform(p, mass, dt),
);
}
Vector2 onApplyAccelerationForces(
Iterable<Force2D> forces,
Vector2 velocity,
double dt,
) {
return forces.fold<Vector2>(
velocity,
(p, e) => e.transform(p, mass, dt),
);
}