Skip to content

[API]: Define core POD components#55

Merged
nircoe merged 3 commits into
refactor/dod_ecsfrom
nircoe/refactor/dod_ecs/core_components
Jul 19, 2026
Merged

[API]: Define core POD components#55
nircoe merged 3 commits into
refactor/dod_ecsfrom
nircoe/refactor/dod_ecs/core_components

Conversation

@nircoe

@nircoe nircoe commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Adds the first POD components for the DoD ECS refactor: transform, velocity, parent, and children. transform carries the real logic (local-space matrix composition, direction vectors, mutators), the rest stay minimal, deferring hierarchy and world-space transforms to a future TransformSystem.

  • Add transform component: position/rotation/scale, matrix composition, direction vectors, mutators
  • Add velocity component: linear/angular
  • Add parent/children components with has_parent()/has_children(), using entity::invalid() as the "no parent" sentinel
  • Verify all components as standard-layout via static_assert
  • Add TransformTests, ParentTests, ChildrenTests, including a rotate()/rotate_around() composition-order regression test
  • Register new test files in tests/CMakeLists.txt and tests/main.cpp
  • Fix Windows CI MSVC job by dropping the hardcoded VS2022 generator, letting CMake auto-detect the installed Visual Studio version

@nircoe nircoe self-assigned this Jul 19, 2026
@nircoe
nircoe merged commit f17b5f6 into refactor/dod_ecs Jul 19, 2026
5 checks passed
@nircoe
nircoe deleted the nircoe/refactor/dod_ecs/core_components branch July 19, 2026 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant