46 ES_PROPERTY(animatable, anim_override, replicated, tooltip=
"Local position in world units, relative to the parent.")
49 ES_PROPERTY(animatable, anim_override, replicated, tooltip=
"Local rotation in degrees, applied X then Y then Z. 2D content turns about Z alone.")
52 ES_PROPERTY(animatable, anim_override, replicated, tooltip=
"Local scale per axis (1 = original size; negative flips).")
53 glm::vec3
scale{1.0f, 1.0f, 1.0f};
83 const auto same = [](
const auto& a,
const auto& b) {
return std::memcmp(&a, &b,
sizeof(a)) == 0; };
97 Transform(
const glm::vec3& pos,
const glm::quat& rot)
100 Transform(
const glm::vec3& pos,
const glm::quat& rot,
const glm::vec3& scl)
Math utilities and GLM configuration for ESEngine.
Reflection and metadata system for automatic binding generation.
#define ES_COMPONENT(...)
Mark a struct/class as a component that should be exposed to scripts.
#define ES_PROPERTY(...)
Mark a field as a property that should be exposed to scripts.
Core type definitions and utilities for ESEngine.
void decompose(const glm::mat4 &matrix, glm::vec3 &position, glm::vec3 &rotation, glm::vec3 &scale)
Decomposes a transformation matrix into components (Euler angles).