localPosition property

Vector2D get localPosition

The entity's position relative to its parent.

Returns CLocalTransform.offset if present, otherwise Vector2D.zero.

Implementation

Vector2D get localPosition {
  final local = localTransform;
  if (local != null) return local.offset;
  return .zero();
}