示例#1
0
        //--------------------------------------------------------------------------------------------------

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

            var boolean = new BooleanFuse();
            targetBody.AddShape(boolean);
            boolean.AddOperand(operand);

            return boolean;
        }
示例#2
0
        //--------------------------------------------------------------------------------------------------

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

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

            return boolean;
        }