Real-time physics library for Java, based on the ReactPhysics3D (https://code.google.com/p/reactphysics3d/) library by Daniel Chappuis (http://www.danielchappuis.ch/).
When a DynamicsWorld is started and updated with no bodies in it, mConstrainedLinearVelocities in DynamicsWorld (among others) is null. This causes ContactSolver to throw an IllegalArgumentException.
To fix this, all null arrays are instead initialized as an empty array.
The test has also been updated. It fails prior to this change.
When a DynamicsWorld is started and updated with no bodies in it, mConstrainedLinearVelocities in DynamicsWorld (among others) is null. This causes ContactSolver to throw an IllegalArgumentException.
To fix this, all null arrays are instead initialized as an empty array.
The test has also been updated. It fails prior to this change.