Exemplo n.º 1
0
        //--------------------------------------------------------------------------------------------------

        public static BooleanCut Create(Body targetBody, IShapeOperand operand)
        {
            Debug.Assert(targetBody != null);

            var boolean = new BooleanCut();

            targetBody.AddShape(boolean);
            boolean.AddOperand(operand);

            return(boolean);
        }
Exemplo n.º 2
0
        //--------------------------------------------------------------------------------------------------

        public static BooleanCut Create(Body targetBody, IShapeOperand[] operands)
        {
            Debug.Assert(targetBody != null);

            var boolean = new BooleanCut();

            targetBody.AddShape(boolean);
            foreach (var shapeOperand in operands)
            {
                boolean.AddOperand(shapeOperand);
            }

            return(boolean);
        }