diff --git a/examples/Scripts/BooleanOperations.html b/examples/Scripts/BooleanOperations.html index f9017c69..9ed464f0 100644 --- a/examples/Scripts/BooleanOperations.html +++ b/examples/Scripts/BooleanOperations.html @@ -365,8 +365,7 @@ for (var i = 0, len = children && children.length; i < len; i++) { var cCenter = children[i].bounds.center; var vec = cCenter.subtract(center); - vec = (vec.isClose([0,0], 0.5))? vec : vec.normalize(distance); - children[i].translate(vec); + children[i].translate(vec.length < 0.5 ? vec : vec.normalize(distance)); } }