static void CalculateMatrices(ITransformable item) { item.Transform.CalculateMatrix(); foreach (var child in item.GetChildren(i => (!i.Transform.Static || !i.Transform.calculated))) { CalculateMatrices(child); } }