r/EntityComponentSystem • u/skypjack • Aug 29 '19
EnTT v3.1 is out: gaming meets modern C++ - a fast and reliable Entity-Component-System (ECS) and much more
r/EntityComponentSystem • u/skypjack • Aug 29 '19
r/EntityComponentSystem • u/skypjack • Aug 20 '19
r/EntityComponentSystem • u/skypjack • Jun 17 '19
r/EntityComponentSystem • u/corysama • Jun 10 '19
r/EntityComponentSystem • u/skypjack • May 16 '19
r/EntityComponentSystem • u/timschwartz • May 07 '18
r/EntityComponentSystem • u/Tortar2 • Jun 01 '26
r/EntityComponentSystem • u/mlange-42 • Nov 13 '25
r/EntityComponentSystem • u/Gustavo_Fenilli • Aug 29 '25
I made a really simple ECS https://github.com/fenilli/cupr-kone ( it's really bad lol ) to learn how it works but the ergonomics need a lot of work and performance wasn't even considered at the moment, but it somewhat works.
I was thinking of using generation for stale ids, but it is unused ( not sure how to use it yet ), just brute removing all components when despawn.
and this is the monstruosity of a query for 2 components only:
if let (Some(aset), Some(bset)) = (world.query_mut::<Position>(), world.query::<Velocity>()) {
if aset.len() <= bset.len() {
let (mut small, large) = (aset, bset);
for (entity, pos) in small.iter_mut() {
if let Some(vel) = large.get(entity) {
pos.x += vel.x;
pos.y += vel.y;
pos.z += vel.z;
}
}
} else {
let (small, mut large) = (bset, aset);
for (entity, vel) in small.iter() {
if let Some(pos) = large.get_mut(entity) {
pos.x += vel.x;
pos.y += vel.y;
pos.z += vel.z;
}
}
}
}So anyone who has done an Sparse Set ECS have some keys to improve on this and well actually use the generational index instead of hard removing components on any despawn ( so good for deferred calls later )
r/EntityComponentSystem • u/freremamapizza • May 04 '25
r/EntityComponentSystem • u/Jarmsicle • Jun 02 '24
r/EntityComponentSystem • u/mlange-42 • Feb 19 '24
Arche is an archetype-based Entity Component System for Go.
Simple core API. See the API docs.
Entity relations as first-class feature. See the User Guide.
World serialization and deserialization with arche-serde.
No systems. Just queries. Use your own structure (or the Tools).
No dependencies. Except for unit tests (100% coverage).
Probably the fastest Go ECS out there. See the Benchmarks.
Arche now has a dedicated documentation site with a structured user guide and background information. We hope that this will lower the barrier to entrance significantly.
Further, Arche got a few new features:
Query.EntityAt was added for random access to query entities.
Generic filters now support Exclusive, like ID-based filters.
Build tag debug improves error messages in a few places where we rely on standard library panics for performance.
For a full list of changes, see the CHANGELOG.
Your feedback is highly appreciated, particularly on the new user guide!
r/EntityComponentSystem • u/therealjtgill • Feb 05 '24
r/EntityComponentSystem • u/_DafuuQ • Jan 31 '24
So i have played for a while with OpenGL, and i have a Mesh class with constructors to create a mesh from a vector with vertices and indices, another that loads it from a .obj filea and now i am gonna try to implement marching cubes, so there will also be a third constructor, that creates it from a IsoSurface / Signed Distance Function, and i have written this mesh class, before i added ECS in the project. So i have a bunch of struct components with only data with them and all their functionality is on the systems that inluence them. But the rendering system is only a simple iterator with calls mesh.draw() for each entity with mesh component. Now do you think that it will be better to make my Mesh class as the rest components to store only data and rewrite all the Mesh functionality in the RenderingSystem, or it would be better to leave it this way ? My question is, is it better to treat all components as pure data, or is it sometimes a better choise to have some of them have their own functionality encapsulated in them ?
r/EntityComponentSystem • u/timschwartz • Jan 21 '24
r/EntityComponentSystem • u/plopzer • Mar 22 '23
I'm wondering if it could solve some of the limitations of TypedArrays.
r/EntityComponentSystem • u/[deleted] • Mar 06 '23
r/EntityComponentSystem • u/jumpixel • Nov 27 '22
r/EntityComponentSystem • u/Top_Night4697 • Oct 05 '22
Hi everyone (spriteKit and gamplayKit),
I've just added flocking as a goal to the behavior of my monster entities in a game I'm coding in gameplayKit, but they are still overlapping with one another. This begs the question; is gameplayKit really reliable for creating autonomous objects in swift? Also, does anyone know where I'm going wrong or care to help me?
Hope everyone is well,
Thanks everyone.
r/EntityComponentSystem • u/timschwartz • Sep 06 '22
r/EntityComponentSystem • u/jumpixel • May 30 '22
r/EntityComponentSystem • u/sebasjammer • Apr 12 '22
r/EntityComponentSystem • u/GasimGasimzada • Mar 26 '22
I have a rigid body component that is being synchronized with the internals of the physics system that I am using. Now, I want to be able to do something like applyForOnRigidBody(entity, {0.0f, 0.0f, 200.0f});.
This creates a bit of a problem for me because in my entity design, I have one constraint. The component properties MUST represent the current state of the component. I don't want to have a property like appliedForce, which calls internal physics systems's addForce and clears the value in the component because now the appliedForce in component does not actually represent the value of the current force in the physics system.