correct belt output epos.y

This commit is contained in:
Stewart Allen 2021-01-09 19:25:29 -05:00
commit a44b347207
2 changed files with 3 additions and 5 deletions

View file

@ -99,8 +99,8 @@
.split("\n");
const scope = this,
morph = false,
// morph = true,
// morph = false,
morph = true,
bounds = scope.bounds = {
max: { x:-Infinity, y:-Infinity, z:-Infinity},
min: { x:Infinity, y:Infinity, z:Infinity}

View file

@ -201,9 +201,7 @@ console.log({isBelt, offset});
if (isBelt) {
epos.x = pos.x;
epos.z = pos.z * icos;
epos.y = pos.y + epos.z * bcos;
// epos.z = pos.y * icos;
// epos.y = pos.z + (pos.y * icos) * bcos;
epos.y = -pos.y + epos.z * bcos;
}
if (emit.x) o.append(" X").append(epos.x.toFixed(decimals));
if (emit.y) o.append(" Y").append(epos.y.toFixed(decimals));