Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Box2D Alchemy can't use Object Pooling? #14

Open
alamboley opened this issue Aug 13, 2012 · 0 comments
Open

Box2D Alchemy can't use Object Pooling? #14

alamboley opened this issue Aug 13, 2012 · 0 comments

Comments

@alamboley
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant