34 ES_PROPERTY(animatable, min=0, tooltip=
"Occluder box size in world units (centred on the entity, turning with it). Unused when the caster has an outline.")
35 glm::vec2
size{32.0f, 32.0f};
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.
A 2D shadow occluder. The box is centred on the entity's world position and turns with it; its size i...
std::vector< glm::vec2 > path
The occluder's outline in local units, or empty for size's box.
glm::vec2 size
Occluder box size in world units (full width/height; centered on the Transform). Ignored by a caster ...
bool operator==(const ShadowCaster2D &) const =default
Compared member by member: what the change audit checks a write of this component against (Registry::...
bool enabled
Disabled casters are skipped during collection.