Global transforms #11

Closed
opened 2024-04-02 10:29:33 -04:00 by SeanOMik · 3 comments
Owner

The ECS has relationships now, meaning that global transforms can be implemented.

  • GlobalTransform component
  • update_global_transforms system that updates global transforms for children of entities.

Global transforms for entities will make it easier to collect the world transforms for entities, especially ones inSceneGraphs (which have a ecs world backing it.

The ECS has relationships now, meaning that global transforms can be implemented. * GlobalTransform component * `update_global_transforms` system that updates global transforms for children of entities. Global transforms for entities will make it easier to collect the world transforms for entities, especially ones in`SceneGraphs` (which have a ecs world backing it.
SeanOMik added the
Kind/Enhancement
label 2024-04-02 10:29:33 -04:00
Author
Owner

I implemented this as WorldTransforms. I haven't fixed lyra-resource or lyra-game to use these new changes yet but will soon. When testing the update system I discovered a bug in the ECS and it took me way too long to track it down. I did find it eventually, fixing it in commit 4162150c5f; the problem was such a stupid mistake.

I implemented this as [WorldTransform](https://git.seanomik.net/SeanOMik/lyra-engine/src/commit/60ec62c55828a4ea273a10e5614e7cc589b005cf/lyra-scene/src/world_transform.rs#L15)s. I haven't fixed `lyra-resource` or `lyra-game` to use these new changes yet but will soon. When testing the update system I discovered a bug in the ECS and it took me way too long to track it down. I did find it eventually, fixing it in commit [4162150c5f](https://git.seanomik.net/SeanOMik/lyra-engine/commit/4162150c5fd20b31eaa80904a933c5cc03d26225); the problem was such a stupid mistake.
Author
Owner

This is now implemented. The only issue is that entities inside the SceneGraph's backing world do not have interpolated transforms. Additionally, the system_update_world_transforms system for updating transforms is manually ran by the renderer for the scene's world.

This is now implemented. The only issue is that entities inside the `SceneGraph`'s backing world do not have interpolated transforms. Additionally, the `system_update_world_transforms` system for updating transforms is manually ran by the renderer for the scene's world.
Author
Owner

#12 tracks the issue with transforms for entities in a SceneGraph not being interpolated

#12 tracks the issue with transforms for entities in a `SceneGraph` not being interpolated
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: SeanOMik/lyra-engine#11
No description provided.