void CalculatePart() { Shape shape = body.Shape; affectable = shape as IGlobalFluidAffectable; if (affectable != null) { area = affectable.Area; centroid = affectable.Centroid; } }
void Calculate() { affectable = body.Shape as IGlobalFluidAffectable; }