Beispiel #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;
        }
Beispiel #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;
        }