mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
push last positions to array
This commit is contained in:
parent
47471e837f
commit
bc4200d8d7
2 changed files with 7 additions and 3 deletions
|
@ -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',
|
||||
|
|
|
@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue