correct belt output epos.y
This commit is contained in:
parent
44d54491d7
commit
a44b347207
2 changed files with 3 additions and 5 deletions
|
|
@ -99,8 +99,8 @@
|
||||||
.split("\n");
|
.split("\n");
|
||||||
|
|
||||||
const scope = this,
|
const scope = this,
|
||||||
morph = false,
|
// morph = false,
|
||||||
// morph = true,
|
morph = true,
|
||||||
bounds = scope.bounds = {
|
bounds = scope.bounds = {
|
||||||
max: { x:-Infinity, y:-Infinity, z:-Infinity},
|
max: { x:-Infinity, y:-Infinity, z:-Infinity},
|
||||||
min: { x:Infinity, y:Infinity, z:Infinity}
|
min: { x:Infinity, y:Infinity, z:Infinity}
|
||||||
|
|
|
||||||
|
|
@ -201,9 +201,7 @@ console.log({isBelt, offset});
|
||||||
if (isBelt) {
|
if (isBelt) {
|
||||||
epos.x = pos.x;
|
epos.x = pos.x;
|
||||||
epos.z = pos.z * icos;
|
epos.z = pos.z * icos;
|
||||||
epos.y = pos.y + epos.z * bcos;
|
epos.y = -pos.y + epos.z * bcos;
|
||||||
// epos.z = pos.y * icos;
|
|
||||||
// epos.y = pos.z + (pos.y * icos) * bcos;
|
|
||||||
}
|
}
|
||||||
if (emit.x) o.append(" X").append(epos.x.toFixed(decimals));
|
if (emit.x) o.append(" X").append(epos.x.toFixed(decimals));
|
||||||
if (emit.y) o.append(" Y").append(epos.y.toFixed(decimals));
|
if (emit.y) o.append(" Y").append(epos.y.toFixed(decimals));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue