absoluteAngle property

double absoluteAngle

The resulting angle after all the ancestors and the components own angle has been applied.

Implementation

double get absoluteAngle {
  // TODO(spydon): take scale into consideration
  return ancestors()
      .whereType<PositionComponent>()
      .fold<double>(angle, (totalAngle, c) => totalAngle + c.angle);
}