fixes in add.three and rename group's 3js object to group3
This commit is contained in:
parent
49d6dce8b3
commit
45e269e140
5 changed files with 18 additions and 12 deletions
|
|
@ -32,7 +32,7 @@
|
|||
},
|
||||
mid: {
|
||||
get: function() {
|
||||
return this.dim.clone().mutiplyScalar(0.5).add(this.min);
|
||||
return this.dim.clone().multiplyScalar(0.5).add(this.min);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
@ -84,9 +84,9 @@
|
|||
let gap = this.attributes.position,
|
||||
pa = gap.array;
|
||||
for (let i=0; i < pa.length; i += 3) {
|
||||
pa[i ] -= x;
|
||||
pa[i + 1] -= y;
|
||||
pa[i + 2] -= z;
|
||||
pa[i ] += x;
|
||||
pa[i + 1] += y;
|
||||
pa[i + 2] += z;
|
||||
}
|
||||
gap.needsUpdate = true;
|
||||
return this;
|
||||
|
|
|
|||
Loading…
Reference in a new issue