block function returns a center slightly otuwards

This commit is contained in:
meadowstream 2014-05-26 13:04:26 -04:00
parent 33930833de
commit 1f34cc64f7

View file

@ -169,7 +169,7 @@ function findCenterOfBlocks(arr) {
return { return {
x:trueCanvas.width/2 + Math.cos(avgAngle * (Math.PI / 180)) * avgDFH, x:trueCanvas.width/2 + Math.cos(avgAngle * (Math.PI / 180)) * avgDFH,
y:trueCanvas.height/2 + Math.sin(avgAngle * (Math.PI / 180)) * avgDFH y:trueCanvas.height/2 + Math.sin(avgAngle * (Math.PI / 180)) * avgDFH + arr[0].height * 1.5
} }
} }