Skip to the content.

Entities

Entities are the basic building blocks of an ECS architecture. They are lightweight, unique identifiers that represent individual objects in your application. Entities have no logic or data attached to them; instead, they act as containers for components.

Components

Components are simple data structures that store the properties and state of an entity. They are decoupled from any logic, making them reusable and interchangeable. Components define the characteristics and attributes of an entity, such as position, velocity, or health. By combining different components, you can create a wide range of entities with varying behaviors and properties.

Systems

Systems contain the logic and functionality of your application. They are responsible for processing and updating entities with specific components. Systems operate on a set of entities that have the required components, performing tasks such as rendering, physics, or AI. By separating logic from data, systems can be modular, reusable, and easily extended.

Why Use an ECS?

ECS offers several benefits that make it an attractive choice for building complex and scalable applications:

⏪ Back Next ⏩