Transforms as components with a hierarchy #20
No assignees
Labels
No labels
area/build
area/content
area/editor
area/engine
area/graphics
area/platform
area/repo-wide
area/tests
area/tools
bug
optional
roadmap
size/L
size/M
size/S
No project
No milestone
Blocks
Depends on
#30 Shared renderer modules, D3D12 refit onto them
UnflavoredMeson/Primal_Plus_Plus
#43 Actor runtime: actors, parts, behaviors
UnflavoredMeson/Primal_Plus_Plus
#19 Archetype ECS
UnflavoredMeson/Primal_Plus_Plus
Reference
No Branch/Tag specified
Notifications
1 participant
Due date
No due date set.
Reference
UnflavoredMeson/Primal_Plus_Plus#20
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Actors attach parts to each other, and the editor reparents things. Transforms need parents from the start, and the renderer needs world matrices computed once per frame in parallel.
Decided
transform::Position, ... inComponents/Transform.h) plusParent/HierarchyDepthon children.position()andset_position()are world space;local_*is relative to the parent (Unity's and Unreal's convention).transform::update_matrices()).Read first
UnflavoredMeson/Primal#57(an O(n)set_position()that became O(n²) per frame).Steps
update_matrices()until they pass.set_position()is O(1).Done when
Claude can help with
Learn