Esempio n. 1
0
        void ExplodeFromPoint(Vector2D pos)
        {
            List <Slice2D> results = Slicing.ExplodeByPointAll(pos, sliceLayer);

            foreach (Slice2D id in results)
            {
                eventHandler.Perform(id);
            }

            if (addForce == true)
            {
                foreach (Slice2D id in results)
                {
                    AddForce.ExplodeByPoint(id, addForceAmount, pos);
                }
            }
        }
Esempio n. 2
0
    private void ExplodeByPoint(Vector2D pos)
    {
        List <Slice2D> results = Slicer2D.ExplodeByPointAll(pos, sliceLayer);

        foreach (Slice2D id in results)
        {
            if (sliceResultEvent != null)
            {
                sliceResultEvent(id);
            }
        }

        if (addForce == true)
        {
            foreach (Slice2D id in results)
            {
                AddForce.ExplodeByPoint(id, addForceAmount, pos);
            }
        }
    }