Git Product home page Git Product logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
[deleted comment]

from artemis-framework.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
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 [email protected] on 27 Sep 2013 at 7:28

from artemis-framework.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
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 [email protected] on 29 Dec 2013 at 11:19

from artemis-framework.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.