//-------------------------------------------------------------------------------------------------- public static BooleanFuse Create(Body targetBody, IShapeOperand operand) { Debug.Assert(targetBody != null); var boolean = new BooleanFuse(); targetBody.AddShape(boolean); boolean.AddOperand(operand); return boolean; }
//-------------------------------------------------------------------------------------------------- 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; }