Update: CC - Demo New - Entity Loaded (tuby5lj4di.js) 143 bytes modified
parent
8d8ca77760
commit
9333648023
|
@ -156,32 +156,38 @@ GameLib.CustomCode.prototype.generateAnimationVectors = function(attributeData)
|
||||||
|
|
||||||
this.updateInformation = [];
|
this.updateInformation = [];
|
||||||
|
|
||||||
|
var index0 = this.offsetAttribute.itemSize * i;
|
||||||
|
var index1 = index + 1;
|
||||||
|
var index2 = index + 2;
|
||||||
|
|
||||||
for (i = 0; i < this.offsetAttribute.count; i++) {
|
for (i = 0; i < this.offsetAttribute.count; i++) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.updateInformation.push(
|
this.updateInformation.push(
|
||||||
{
|
{
|
||||||
offset : {
|
offset : {
|
||||||
current : new THREE.Vector3(
|
current : new THREE.Vector3(
|
||||||
this.offsetAttribute.array[i+0],
|
this.offsetAttribute.array[index0],
|
||||||
this.offsetAttribute.array[i+1],
|
this.offsetAttribute.array[index1],
|
||||||
this.offsetAttribute.array[i+2]
|
this.offsetAttribute.array[index2]
|
||||||
),
|
),
|
||||||
target : new THREE.Vector3(
|
target : new THREE.Vector3(
|
||||||
attributeData.offsets[i+0],
|
attributeData.offsets[index0],
|
||||||
attributeData.offsets[i+1],
|
attributeData.offsets[index1],
|
||||||
attributeData.offsets[i+2]
|
attributeData.offsets[index2]
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
scale : {
|
scale : {
|
||||||
current : new THREE.Vector3(
|
current : new THREE.Vector3(
|
||||||
this.scaleAttribute.array[i+0],
|
this.scaleAttribute.array[index0],
|
||||||
this.scaleAttribute.array[i+1],
|
this.scaleAttribute.array[index1],
|
||||||
this.scaleAttribute.array[i+2]
|
this.scaleAttribute.array[index2]
|
||||||
),
|
),
|
||||||
target : new THREE.Vector3(
|
target : new THREE.Vector3(
|
||||||
attributeData.scales[i+0],
|
attributeData.scales[index0],
|
||||||
attributeData.scales[i+1],
|
attributeData.scales[index1],
|
||||||
attributeData.scales[i+2]
|
attributeData.scales[index2]
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue