push last positions to array

This commit is contained in:
James B. Pollack 2015-10-12 16:35:06 -07:00
parent 47471e837f
commit bc4200d8d7
2 changed files with 7 additions and 3 deletions

View file

@ -438,8 +438,9 @@
var position = Vec3.sum(startPosition, multiplier);
position.y = startPosition.y - (row * VERTICAL_SPACING);
originalPositions.push(position);
originalPositions.push(position);
lastPositions.push(position);
var targetProperties = {
name: 'Target',
type: 'Model',

View file

@ -411,7 +411,8 @@ MasterReset = function() {
position.y = startPosition.y - (row * VERTICAL_SPACING);
originalPositions.push(position);
lastPositions.push(position);
var targetProperties = {
name: 'Target',
type: 'Model',
@ -429,8 +430,10 @@ MasterReset = function() {
}
})
};
var target = Entities.addEntity(targetProperties);
targets.push(target);
}
}