I'm using JBullet and find that BasicDemo works fine for a small to medium number of objects.
However, as I increase the number of objects it throws the exception:
Is there a way to increase the number of dynamic objects?
Graham
Code: Select all
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 4051
at com.bulletphysics.collision.broadphase.AxisSweep3$EdgeArrayImpl.set(AxisSweep3.java:94)
at com.bulletphysics.collision.broadphase.AxisSweep3Internal.addHandle(AxisSweep3Internal.java:471)
at com.bulletphysics.collision.broadphase.AxisSweep3Internal.createProxy(AxisSweep3Internal.java:585)
at com.bulletphysics.collision.dispatch.CollisionWorld.addCollisionObject(CollisionWorld.java:120)
at com.bulletphysics.dynamics.DiscreteDynamicsWorld.addRigidBody(DiscreteDynamicsWorld.java:420)
at com.bulletphysics.demos.basic.BasicDemo.createSpheres(BasicDemo.java:295)
at com.bulletphysics.demos.basic.BasicDemo.initPhysics(BasicDemo.java:169)
at com.bulletphysics.demos.basic.BasicDemo.main(BasicDemo.java:349)