Open GoogleCodeExporter opened 9 years ago
[deleted comment]
I'm experiencing a similar issue, where I'm creating a new entity in the
overridden removed() method. The entity that gets created has the same id as
the one that is passed into removed.
The problem happens when the componentManager cleans up all the deleted
entities after notifying the systems, and cleans up the newly created
components for the new entity created in removed().
Original comment by apota...@gmail.com
on 27 Sep 2013 at 7:28
I agree with this.
In my current project, I have a Physics component which creates a box2d body in
the overridden inserted(Entity e) method.
When an entity is removed from the world via world.deleteEntity(e), in
removed(Entity e) I clean up and remove the box2d body (since the physics
component returns OK).
However, if I removed the physics component via
e.removeComponent(Physics.class), then call e.changedInWorld() the removed
method returns null when I get the Physics component.
This is a bit of a problem for me, since it works unpredictably depending on
how you remove the component or entity.
Original comment by rend...@gmail.com
on 29 Dec 2013 at 11:19
Original issue reported on code.google.com by
olbart...@gmail.com
on 13 Sep 2013 at 5:04