25 const auto cross = glm::cross(x, y);
26 return (cross.x != 0 || cross.y != 0 || cross.z != 0)
27 && std::isfinite(cross.x) && std::isfinite(cross.y) && std::isfinite(cross.z);
38 output = registry.
has<
Parent>(entity) ? transform->cachedMatrix_
39 :
math::compose(transform->worldPosition, transform->worldRotation, transform->worldScale);
Hierarchy components for parent-child relationships.
Central ECS registry for entity and component management.
Central container for all entities and components.
bool has(Entity entity) const
Checks if an entity has a specific component.
T * tryGet(Entity entity)
Tries to get a component from an entity.
bool hasFlatGeometryArea(Transform &transform, bool parented)
bool copyFlatRenderMatrix(Registry ®istry, Entity entity, glm::mat4 &output)
glm::mat4 compose(const glm::vec3 &position, const glm::quat &rotation, const glm::vec3 &scale)
Constructs a transformation matrix from TRS components.
Entity identifier with packed index + generation.
Parent reference component.