TransformComponent Class

Position, rotation, and scale for an entity. World-space accessors (Position, Rotation, Scale) walk the parent hierarchy automatically; local-space accessors bypass it.

public class TransformComponent : Brine2D.ECS.Component

Inheritance System.ObjectComponent → TransformComponent

Properties
Position World-space position. Setting this back-computes Brine2D.ECS.Components.TransformComponent.LocalPosition through the parent's transform (rotation + scale).
Rotation World-space rotation in radians. Additive through the parent hierarchy.
Scale World-space scale. Multiplicative through the parent hierarchy.
Methods
GetTransformMatrix() Computes the world-space SRT matrix. Walks the parent hierarchy via Position/Rotation/Scale.