public void Visit(Cylinder visitable) { IPhysical physical = PhysicalManager.MakeCyllinder(visitable.RBottom, visitable.RTop, visitable.Height); physical.Body = visitable; AfterCreating(visitable, physical); }
public void Visit(Ball visitable) { IPhysical physical = PhysicalManager.MakeCyllinder(visitable.Radius, visitable.Radius, visitable.Radius * 2); physical.Body = visitable; AfterCreating(visitable, physical); }