Comments (3)
[deleted comment]
from artemis-framework.
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.
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)
- Entity getComponents bug HOT 1
- Ordered Bag Implementation? HOT 2
- String comparison in GroupManager
- Naming conventions for Aspects
- Support component mappers with @Mapper in super classes
- Bug in Bag size with set and remove HOT 2
- Bag.set always resets Bag.size to the last set item's position
- ImmutableBag should extend Iterable HOT 1
- Aspect checking for oneSet seems to be broken.
- Thread-safety issue in com.artemis.EntitySystem.SystemIndexManager
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from artemis-framework.