Hey there,
I've created a Pool Object composed of Box2D physics object. I've an error when I destroy objects and recreate them through the pool (reassign).
RangeError: Error #1506: The specified range is invalid.
The Box2D object is destroyed, but it seems it has problem to be recreate.
My engine may also use Nape which doesn't spread error & works great.
Any ideas?
You can find sources there : https://github.com/alamboley/Citrus-Engine/tree/master/src/objectpooling Just change the nape package/object by box2d and use Box2DPhysicsObject, it will work!
Hey there,
I've created a Pool Object composed of Box2D physics object. I've an error when I destroy objects and recreate them through the pool (reassign).
RangeError: Error #1506: The specified range is invalid.
The Box2D object is destroyed, but it seems it has problem to be recreate.
My engine may also use Nape which doesn't spread error & works great.
Any ideas?
You can find sources there : https://github.com/alamboley/Citrus-Engine/tree/master/src/objectpooling Just change the nape package/object by box2d and use Box2DPhysicsObject, it will work!