Skip to content

Box2D Alchemy can't use Object Pooling? #14

Description

@alamboley

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions