You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sample refine Raylib, Flecs, and raygui for transform 3D hierarchy.
I kept it simple but with the raygui it easy to debug to control transform to update real time.
// Transform3D componenttypedefstruct {
Vector3position; // Local positionQuaternionrotation; // Local rotationVector3scale; // Local scaleMatrixlocalMatrix; // Local transform matrixMatrixworldMatrix; // World transform matrixboolisDirty; // Flag to indicate if transform needs updating
Sample player controller move test for raylib, ode and flecs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Flecs 4.x Documentation for Hierarchical 3D Transformation Systems
Flecs 4.x Documentation for Hierarchical 3D Transformation Systems
This guide outlines how to set up a hierarchical 3D transformation system using Flecs 4.x, focusing on correct entity-component-system (ECS) configuration, transformation order, and parent-child relationships. It is tailored for AI agents and developers building 3D applications (e.g., with OpenGL or other rendering APIs) where entities have position, rotation, and scale, and transformations are propagated through a parent-child hierarchy.Key Concepts1. Flecs Basics
Entities: Unique identifiers representing objects (e.g., a cube in a 3D scene).
Components: Data structures attached to entities (e.g., Transform3D for position, rotation, scale).
Systems: Functions that operate on entities with specific components, executed in a defined order (e.g., EcsPreUpdate, EcsOnUpdate).
Pairs: Relationships between entities, used for hierarchies (e.g., (EcsChildOf, ParentEntity) to denote a child-parent relationship).
Sample raylib 5.5 flecs 4.1 raygui picking single cube test.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sample test raylib 5.5 flecs 4.1 raygui transform test.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sample raylib 5.5 flecs 4.1 raygui move position silder test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters