예제 #1
0
        public void Visit(Cylinder visitable)
        {
            IPhysical physical = PhysicalManager.MakeCyllinder(visitable.RBottom, visitable.RTop, visitable.Height);

            physical.Body = visitable;
            AfterCreating(visitable, physical);
        }
예제 #2
0
        public void Visit(Ball visitable)
        {
            IPhysical physical = PhysicalManager.MakeCyllinder(visitable.Radius, visitable.Radius, visitable.Radius * 2);

            physical.Body = visitable;
            AfterCreating(visitable, physical);
        }