NateTheGreatt / bitECS

Flexible, minimal, data-oriented ECS library for Typescript
Mozilla Public License 2.0
944 stars 84 forks source link

RemoveEntity() doesn't remove entity from Queries or Component #94

Closed ScottLHelm closed 5 days ago

ScottLHelm commented 2 years ago

Calling RemoveEntity(world, eid) doesn't remove an entity from a query or the component array. Calling RemoveComponent() on the appropriate component does remove the entity from both though. Is this a bug with RemoveEntity() or am I calling the function incorrectly?

Thanks!

speigg commented 2 years ago

@ScottLHelm I think this has been fixed on master; you should be able to test by installing directly from git

"bitecs": "github:NateTheGreatt/bitECS#master"

NateTheGreatt commented 5 days ago

https://github.com/NateTheGreatt/bitECS/tree/rc-0-4-0