block function returns a center slightly otuwards
This commit is contained in:
parent
33930833de
commit
1f34cc64f7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue