Goodluck / API Reference

LocalTransform2D

The LocalTransform2D component allows the entity to be positioned in 2D space.

LocalTransform2D only stores the local (parent-space) transform data. If the entity is a top-level entity, the local data is also the world-space data.

In order to be a parent of other entities, or to be a child of another entity, the entity must also have the SpatialNode2D component.

OTOH, entities with LocalTransform2D but without SpatialNode2D have their model matrix computed in the shader, making them very fast to update.

For an entity to be processed by sys_transform2d, it must also be tagged as dirty with Has.Dirty.