| Index: lib/src/dynamics/contacts/contact_solver.dart
|
| diff --git a/lib/src/dynamics/contacts/contact_solver.dart b/lib/src/dynamics/contacts/contact_solver.dart
|
| index 589d298b8702814a0245b765d14054f83a3f6958..098ffb3fc9c8b2c185a2cd40d2a56ab36bc5f70c 100644
|
| --- a/lib/src/dynamics/contacts/contact_solver.dart
|
| +++ b/lib/src/dynamics/contacts/contact_solver.dart
|
| @@ -72,8 +72,8 @@ class ContactSolver {
|
|
|
| if (_positionConstraints.length < _count) {
|
| List<ContactPositionConstraint> old = _positionConstraints;
|
| - _positionConstraints = new List<ContactPositionConstraint>(
|
| - Math.max(old.length * 2, _count));
|
| + _positionConstraints =
|
| + new List<ContactPositionConstraint>(Math.max(old.length * 2, _count));
|
| BufferUtils.arraycopy(old, 0, _positionConstraints, 0, old.length);
|
| for (int i = old.length; i < _positionConstraints.length; i++) {
|
| _positionConstraints[i] = new ContactPositionConstraint();
|
| @@ -82,8 +82,8 @@ class ContactSolver {
|
|
|
| if (_velocityConstraints.length < _count) {
|
| List<ContactVelocityConstraint> old = _velocityConstraints;
|
| - _velocityConstraints = new List<ContactVelocityConstraint>(
|
| - Math.max(old.length * 2, _count));
|
| + _velocityConstraints =
|
| + new List<ContactVelocityConstraint>(Math.max(old.length * 2, _count));
|
| BufferUtils.arraycopy(old, 0, _velocityConstraints, 0, old.length);
|
| for (int i = old.length; i < _velocityConstraints.length; i++) {
|
| _velocityConstraints[i] = new ContactVelocityConstraint();
|
|
|