2017-11-27 13:46:06 +01:00
|
|
|
if (this.parentEntity === data.entity) {
|
2018-03-06 14:50:37 +01:00
|
|
|
console.log('my entity loaded :)');
|
2017-11-27 13:46:06 +01:00
|
|
|
} else {
|
2018-03-06 14:50:37 +01:00
|
|
|
return;
|
2017-11-27 13:46:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
this.enemies = [];
|
|
|
|
|
|
|
|
/**
|
2018-03-06 14:50:37 +01:00
|
|
|
* Min and max spawn time is in seconds
|
|
|
|
*/
|
2018-01-11 11:01:25 +01:00
|
|
|
GameLib.CustomCode.MIN_SPAWN_TIME = 1;
|
|
|
|
GameLib.CustomCode.MAX_SPAWN_TIME = 4;
|
|
|
|
GameLib.CustomCode.OBJECT_BUFFER_SIZE = 5;
|
2017-11-27 13:46:06 +01:00
|
|
|
|
|
|
|
/**
|
2018-03-06 14:50:37 +01:00
|
|
|
* Create references to all our 'in game' objects
|
|
|
|
*/
|
2018-03-06 15:25:00 +01:00
|
|
|
this.fog = GameLib.EntityManager.Instance.findComponentById('prn0bjxe3h')
|
2017-11-27 13:46:06 +01:00
|
|
|
this.bull = GameLib.EntityManager.Instance.findComponentById('cpcuzjjx27');
|
|
|
|
this.star = GameLib.EntityManager.Instance.findComponentById('lc7boe8lul');
|
|
|
|
this.burger = GameLib.EntityManager.Instance.findComponentById('suwsyomgc8');
|
|
|
|
this.parcel = GameLib.EntityManager.Instance.findComponentById('vikv0e8s04');
|
|
|
|
this.santa = GameLib.EntityManager.Instance.findComponentById('r0gkv2m07t');
|
|
|
|
this.camera = GameLib.EntityManager.Instance.findComponentById('2f5l1jt4yw');
|
2018-03-06 15:24:03 +01:00
|
|
|
this.scene = GameLib.EntityManager.Instance.findComponentById('z3ktrimsp8');
|
2017-11-27 13:46:06 +01:00
|
|
|
this.cursor = GameLib.EntityManager.Instance.findComponentById('zfu27tmjn4');
|
|
|
|
|
2018-03-07 05:35:29 +01:00
|
|
|
this.renderer = GameLib.EntityManager.Instance.findComponentById('wid7sf7y35');
|
2017-11-27 13:46:06 +01:00
|
|
|
this.thrower = GameLib.EntityManager.Instance.findComponentById('xtukuakue3');
|
2018-03-07 06:21:45 +01:00
|
|
|
|
2017-11-27 13:46:06 +01:00
|
|
|
this.treeSmall = GameLib.EntityManager.Instance.findComponentById('66lfvqjnsh');
|
|
|
|
this.treeMedium = GameLib.EntityManager.Instance.findComponentById('jkfx0aimom');
|
|
|
|
this.treeLarge = GameLib.EntityManager.Instance.findComponentById('53cg0zj637');
|
|
|
|
this.stone1 = GameLib.EntityManager.Instance.findComponentById('ouacwomksb');
|
|
|
|
this.stone2 = GameLib.EntityManager.Instance.findComponentById('zaen0snqwc');
|
|
|
|
this.kanister = GameLib.EntityManager.Instance.findComponentById('01hun2dd7x');
|
|
|
|
|
2018-03-07 06:21:45 +01:00
|
|
|
/**
|
|
|
|
* Lights
|
|
|
|
*/
|
|
|
|
this.lightDirectional = GameLib.EntityManager.Instance.findComponentById('lbzb38hku5');
|
2018-03-07 06:42:28 +01:00
|
|
|
this.lightAmbient = GameLib.EntityManager.Instance.findComponentById('0z7ybu0bnb');
|
2018-03-07 06:21:45 +01:00
|
|
|
this.throwerLight = GameLib.EntityManager.Instance.findComponentById('z1jjutmra1');
|
|
|
|
|
2018-03-07 07:13:03 +01:00
|
|
|
this.scoreCanvas = GameLib.EntityManager.Instance.findComponentById('kbwcgi1xoq');
|
|
|
|
this.scoreTexture = GameLib.EntityManager.Instance.findComponentById('s9qsosyx1w');
|
2018-03-07 05:33:38 +01:00
|
|
|
this.scoreMesh = GameLib.EntityManager.Instance.findComponentById('nnmuq10dbl');
|
2017-11-27 13:46:06 +01:00
|
|
|
|
|
|
|
this.throwerParticleEngine = GameLib.EntityManager.Instance.findComponentById('ofo2ota5bo');
|
|
|
|
this.smokeParticleEngine = GameLib.EntityManager.Instance.findComponentById('ulks1tuug6');
|
|
|
|
this.fireParticleEngine = GameLib.EntityManager.Instance.findComponentById('t15omdm43f');
|
|
|
|
this.explodeParticleEngine = GameLib.EntityManager.Instance.findComponentById('gwi8qiymy5');
|
|
|
|
this.materialTreesAndRocks = GameLib.EntityManager.Instance.findComponentById('g91m1tk6so');
|
|
|
|
|
|
|
|
this.burningTreeParticleEngine = GameLib.EntityManager.Instance.findComponentById('jdn84unl9b');
|
|
|
|
|
|
|
|
GameLib.Event.Emit(
|
2018-03-06 14:50:37 +01:00
|
|
|
GameLib.Event.GET_RUNTIME,
|
|
|
|
null,
|
|
|
|
function(runtime) {
|
|
|
|
this.graphics = runtime.graphics
|
|
|
|
}.bind(this)
|
2017-11-27 13:46:06 +01:00
|
|
|
);
|
|
|
|
|
2018-03-06 15:28:51 +01:00
|
|
|
this.mouse = new GameLib.Mouse();
|
2017-11-27 13:46:06 +01:00
|
|
|
this.raycaster = new GameLib.D3.Raycaster(this.graphics);
|
|
|
|
|
|
|
|
this.beforeRender = GameLib.EntityManager.Instance.findComponentById('qemp4een6t');
|
|
|
|
this.mouseUp = GameLib.EntityManager.Instance.findComponentById('f0m7ptlxf3');
|
|
|
|
this.mouseDown = GameLib.EntityManager.Instance.findComponentById('jtmr6gmp5p');
|
|
|
|
this.mouseMove = GameLib.EntityManager.Instance.findComponentById('lxigrx11oc');
|
|
|
|
this.touchMove = GameLib.EntityManager.Instance.findComponentById('evwkow5289');
|
|
|
|
|
|
|
|
/**
|
2018-01-14 14:06:55 +01:00
|
|
|
* Tell all our custom code components that we loaded
|
|
|
|
*/
|
2017-11-27 13:46:06 +01:00
|
|
|
GameLib.Event.Subscribe(
|
2018-03-06 14:50:37 +01:00
|
|
|
GameLib.Event.CUSTOM_GAME_START,
|
|
|
|
function() {
|
2017-11-27 13:46:06 +01:00
|
|
|
|
2018-03-06 14:50:37 +01:00
|
|
|
delete this.beforeRender.initialized;
|
2017-11-27 13:46:06 +01:00
|
|
|
|
2018-03-06 14:50:37 +01:00
|
|
|
this.beforeRender.entityLoaded = this;
|
|
|
|
this.mouseUp.entityLoaded = this;
|
|
|
|
this.mouseDown.entityLoaded = this;
|
|
|
|
this.mouseMove.entityLoaded = this;
|
|
|
|
this.touchMove.entityLoaded = this;
|
2018-03-09 12:20:12 +01:00
|
|
|
|
2018-03-06 14:50:37 +01:00
|
|
|
this.camera.lookAt.x = 0;
|
|
|
|
this.camera.lookAt.y = 0;
|
|
|
|
this.camera.lookAt.z = 0;
|
|
|
|
this.camera.updateInstance('lookAt');
|
2017-11-27 13:46:06 +01:00
|
|
|
|
2018-03-06 14:50:37 +01:00
|
|
|
this.mouse.x = 0;
|
|
|
|
this.mouse.y = 0;
|
2017-11-27 13:46:06 +01:00
|
|
|
|
2018-03-06 14:50:37 +01:00
|
|
|
}.bind(this)
|
2017-11-27 13:46:06 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
2018-03-07 06:21:45 +01:00
|
|
|
* Plant all our trees - create our enemies - Below code gets generated automatically
|
2018-03-06 14:50:37 +01:00
|
|
|
*/
|
2018-03-07 06:46:44 +01:00
|
|
|
|
2018-03-07 07:43:44 +01:00
|
|
|
var treeSmall = this.treeSmall;
|
|
|
|
var treeMedium = this.treeMedium;
|
|
|
|
var treeLarge = this.treeLarge;
|
|
|
|
var stone1 = this.stone1;
|
|
|
|
var stone2 = this.stone2;
|
|
|
|
var materialTreesAndRocks = this.materialTreesAndRocks;
|
|
|
|
|
|
|
|
var mesh = null;
|
|
|
|
var material = null;
|
|
|
|
var burningTreeParticleEngine = null;
|
|
|
|
var smokeParticleEngine = null;
|
|
|
|
var explodeParticleEngine = null;
|
|
|
|
var fireParticleEngine = null;
|
|
|
|
|
|
|
|
this.meshes = {};
|
|
|
|
|
|
|
|
this.createMesh = function(meshType) {
|
|
|
|
|
|
|
|
mesh = this[meshType].clone();
|
|
|
|
material = this[meshType].materials[0].clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
|
|
|
|
explodeParticleEngine = this.explodeParticleEngine.clone();
|
|
|
|
explodeParticleEngine.position = mesh.position.clone();
|
|
|
|
explodeParticleEngine.updateInstance('position');
|
|
|
|
mesh.explodeParticleEngine = explodeParticleEngine;
|
|
|
|
|
|
|
|
smokeParticleEngine = this.smokeParticleEngine.clone();
|
|
|
|
smokeParticleEngine.position = mesh.position.clone();
|
|
|
|
smokeParticleEngine.updateInstance('position');
|
|
|
|
mesh.smokeParticleEngine = smokeParticleEngine;
|
|
|
|
|
|
|
|
fireParticleEngine = this.fireParticleEngine.clone();
|
|
|
|
fireParticleEngine.position = mesh.position.clone();
|
|
|
|
fireParticleEngine.updateInstance('position');
|
|
|
|
mesh.fireParticleEngine = fireParticleEngine;
|
|
|
|
|
|
|
|
if (typeof this.meshes[meshType] === 'undefined') {
|
|
|
|
this.meshes[meshType] = [];
|
|
|
|
}
|
|
|
|
|
|
|
|
this.meshes[meshType].push(
|
|
|
|
{
|
|
|
|
inUse : false,
|
|
|
|
mesh : mesh
|
|
|
|
}
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
for (var n = 0; n < GameLib.CustomCode.OBJECT_BUFFER_SIZE; n++) {
|
|
|
|
this.createMesh('bull');
|
|
|
|
}
|
|
|
|
|
|
|
|
for (var n = 0; n < GameLib.CustomCode.OBJECT_BUFFER_SIZE; n++) {
|
|
|
|
this.createMesh('star');
|
|
|
|
}
|
|
|
|
|
|
|
|
for (var n = 0; n < GameLib.CustomCode.OBJECT_BUFFER_SIZE; n++) {
|
|
|
|
this.createMesh('burger');
|
|
|
|
}
|
|
|
|
|
|
|
|
for (var n = 0; n < GameLib.CustomCode.OBJECT_BUFFER_SIZE; n++) {
|
|
|
|
this.createMesh('parcel');
|
|
|
|
}
|
|
|
|
|
|
|
|
for (var n = 0; n < GameLib.CustomCode.OBJECT_BUFFER_SIZE; n++) {
|
|
|
|
this.createMesh('santa');
|
|
|
|
}
|
|
|
|
|
|
|
|
for (var n = 0; n < GameLib.CustomCode.OBJECT_BUFFER_SIZE; n++) {
|
|
|
|
this.createMesh('kanister');
|
|
|
|
}
|
|
|
|
|
|
|
|
mesh = stone2.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 46.52;
|
|
|
|
mesh.position.y = -19.43;
|
|
|
|
mesh.position.z = 9;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 1.46;
|
|
|
|
mesh.rotation.z = 3.66;
|
|
|
|
mesh.scale.x = 10;
|
|
|
|
mesh.scale.y = 10;
|
|
|
|
mesh.scale.z = 10;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone2.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 12.65;
|
|
|
|
mesh.position.y = -19.59;
|
|
|
|
mesh.position.z = -59.38;
|
|
|
|
mesh.rotation.x = 16.12;
|
|
|
|
mesh.rotation.y = 11.72;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone1.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 29.32;
|
|
|
|
mesh.position.y = -19.43;
|
|
|
|
mesh.position.z = -22.330000000000002;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 0;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone2.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -29.94;
|
|
|
|
mesh.position.y = -19.59;
|
|
|
|
mesh.position.z = -28.740000000000002;
|
|
|
|
mesh.rotation.x = -5.14;
|
|
|
|
mesh.rotation.y = 0;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone1.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 25.29;
|
|
|
|
mesh.position.y = -19.07;
|
|
|
|
mesh.position.z = -57.18;
|
|
|
|
mesh.rotation.x = -5.14;
|
|
|
|
mesh.rotation.y = -0.74;
|
|
|
|
mesh.rotation.z = 3.39;
|
|
|
|
mesh.scale.x = 8.06;
|
|
|
|
mesh.scale.y = 5.86;
|
|
|
|
mesh.scale.z = 5.43;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone2.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 40.31;
|
|
|
|
mesh.position.y = -19.59;
|
|
|
|
mesh.position.z = -22.62;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 0;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone1.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -13.67;
|
|
|
|
mesh.position.y = -19.43;
|
|
|
|
mesh.position.z = -60.120000000000005;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 0;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 4.84;
|
|
|
|
mesh.scale.y = 3.46;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone2.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 35.96;
|
|
|
|
mesh.position.y = -19.59;
|
|
|
|
mesh.position.z = -38.54;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 0;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 15;
|
|
|
|
mesh.scale.y = 8;
|
|
|
|
mesh.scale.z = 8;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone1.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 28.580000000000002;
|
|
|
|
mesh.position.y = -19.43;
|
|
|
|
mesh.position.z = -46.19;
|
|
|
|
mesh.rotation.x = 3.66;
|
|
|
|
mesh.rotation.y = -0.74;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 8.790000000000001;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone2.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 42.93;
|
|
|
|
mesh.position.y = -19.43;
|
|
|
|
mesh.position.z = -24.23;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 0;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 8;
|
|
|
|
mesh.scale.y = 8;
|
|
|
|
mesh.scale.z = 8;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone1.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 46.18;
|
|
|
|
mesh.position.y = -19.43;
|
|
|
|
mesh.position.z = -22.330000000000002;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 0;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 12.46;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone2.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -47.93;
|
|
|
|
mesh.position.y = -19.59;
|
|
|
|
mesh.position.z = 8.85;
|
|
|
|
mesh.rotation.x = 0.07;
|
|
|
|
mesh.rotation.y = 0.72;
|
|
|
|
mesh.rotation.z = -0.41000000000000003;
|
|
|
|
mesh.scale.x = 10;
|
|
|
|
mesh.scale.y = 10;
|
|
|
|
mesh.scale.z = 15;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone1.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -46.84;
|
|
|
|
mesh.position.y = -19.43;
|
|
|
|
mesh.position.z = -6.29;
|
|
|
|
mesh.rotation.x = 1.02;
|
|
|
|
mesh.rotation.y = 3.12;
|
|
|
|
mesh.rotation.z = 3.08;
|
|
|
|
mesh.scale.x = 9;
|
|
|
|
mesh.scale.y = 9;
|
|
|
|
mesh.scale.z = 9;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone2.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -43.26;
|
|
|
|
mesh.position.y = -19.59;
|
|
|
|
mesh.position.z = -23.46;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 0;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone1.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -45.68;
|
|
|
|
mesh.position.y = -19.43;
|
|
|
|
mesh.position.z = -22.330000000000002;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = -0.52;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 7;
|
|
|
|
mesh.scale.y = 6.3;
|
|
|
|
mesh.scale.z = 7;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone2.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -51.32;
|
|
|
|
mesh.position.y = -19.59;
|
|
|
|
mesh.position.z = 10.99;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 0;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 15;
|
|
|
|
mesh.scale.y = 15;
|
|
|
|
mesh.scale.z = 10;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone1.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -50.59;
|
|
|
|
mesh.position.y = -19.43;
|
|
|
|
mesh.position.z = -5.87;
|
|
|
|
mesh.rotation.x = 0.02;
|
|
|
|
mesh.rotation.y = -0.02;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone2.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -47.9;
|
|
|
|
mesh.position.y = -19.59;
|
|
|
|
mesh.position.z = 12.6;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 0;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone1.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 38.85;
|
|
|
|
mesh.position.y = -19.43;
|
|
|
|
mesh.position.z = -36.53;
|
|
|
|
mesh.rotation.x = -0.74;
|
|
|
|
mesh.rotation.y = -3.67;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 7;
|
|
|
|
mesh.scale.y = 7;
|
|
|
|
mesh.scale.z = 7;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone2.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -28.150000000000002;
|
|
|
|
mesh.position.y = -19.43;
|
|
|
|
mesh.position.z = -30;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 0;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 9.52;
|
|
|
|
mesh.scale.y = 5.86;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone1.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 31.52;
|
|
|
|
mesh.position.y = -19.43;
|
|
|
|
mesh.position.z = -45.43;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 0;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 8.06;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone2.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -15.38;
|
|
|
|
mesh.position.y = -19.59;
|
|
|
|
mesh.position.z = -61.15;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 0;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone1.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 28.580000000000002;
|
|
|
|
mesh.position.y = -19.43;
|
|
|
|
mesh.position.z = -57.92;
|
|
|
|
mesh.rotation.x = 0.29;
|
|
|
|
mesh.rotation.y = 0.53;
|
|
|
|
mesh.rotation.z = -0.05;
|
|
|
|
mesh.scale.x = 4.39;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone2.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 10.26;
|
|
|
|
mesh.position.y = -19.59;
|
|
|
|
mesh.position.z = -60.120000000000005;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 0;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone1.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 22.72;
|
|
|
|
mesh.position.y = -19.43;
|
|
|
|
mesh.position.z = -67.95;
|
|
|
|
mesh.rotation.x = 7.32;
|
|
|
|
mesh.rotation.y = 0;
|
|
|
|
mesh.rotation.z = 0.73;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone2.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -39.59;
|
|
|
|
mesh.position.y = -19.59;
|
|
|
|
mesh.position.z = -9.540000000000001;
|
|
|
|
mesh.rotation.x = 4.39;
|
|
|
|
mesh.rotation.y = 0;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 10.26;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone1.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 73.3;
|
|
|
|
mesh.position.y = -19.43;
|
|
|
|
mesh.position.z = 7.32;
|
|
|
|
mesh.rotation.x = 2.19;
|
|
|
|
mesh.rotation.y = 0;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 11.72;
|
|
|
|
mesh.scale.y = 12.46;
|
|
|
|
mesh.scale.z = 8.790000000000001;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone2.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -39.59;
|
|
|
|
mesh.position.y = -19.59;
|
|
|
|
mesh.position.z = -7.34;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 0;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = stone2.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 70.37;
|
|
|
|
mesh.position.y = -19.43;
|
|
|
|
mesh.position.z = 5.13;
|
|
|
|
mesh.rotation.x = 1.46;
|
|
|
|
mesh.rotation.y = 0;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 22.72;
|
|
|
|
mesh.scale.y = 13.19;
|
|
|
|
mesh.scale.z = 10.26;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeSmall.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 10.99;
|
|
|
|
mesh.position.y = -14.13;
|
|
|
|
mesh.position.z = -61.58;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 17;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeMedium.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 28.565744326937438;
|
|
|
|
mesh.position.y = -10.38;
|
|
|
|
mesh.position.z = -63.90616755093394;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 20;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeMedium.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 75.5;
|
|
|
|
mesh.position.y = -10.27;
|
|
|
|
mesh.position.z = -53.52;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 20.52;
|
|
|
|
mesh.rotation.z = -0.21;
|
|
|
|
mesh.scale.x = 7.32;
|
|
|
|
mesh.scale.y = 9.52;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeMedium.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -27.86;
|
|
|
|
mesh.position.y = -10.38;
|
|
|
|
mesh.position.z = -76.24;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 17;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeMedium.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -14.67;
|
|
|
|
mesh.position.y = -13.93;
|
|
|
|
mesh.position.z = -62.32;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 14;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 3;
|
|
|
|
mesh.scale.y = 3;
|
|
|
|
mesh.scale.z = 3;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeMedium.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -58.65;
|
|
|
|
mesh.position.y = -2.94;
|
|
|
|
mesh.position.z = -60.85;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 10.99;
|
|
|
|
mesh.rotation.z = 0.19;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeMedium.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 21.990000000000002;
|
|
|
|
mesh.position.y = -10;
|
|
|
|
mesh.position.z = -69.26;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 11.72;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeMedium.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 57.17;
|
|
|
|
mesh.position.y = -10.38;
|
|
|
|
mesh.position.z = -45.989061910315236;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 7;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 8.790000000000001;
|
|
|
|
mesh.scale.z = 7.32;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeMedium.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -31.69;
|
|
|
|
mesh.position.y = -10.38;
|
|
|
|
mesh.position.z = -32.32;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 4;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeMedium.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -34.46;
|
|
|
|
mesh.position.y = -8.8;
|
|
|
|
mesh.position.z = -63.65081987779772;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 5.86;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 6.59;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeMedium.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 40.31;
|
|
|
|
mesh.position.y = -6.6000000000000005;
|
|
|
|
mesh.position.z = -58.90296893655275;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 1;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeLarge.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 30.78;
|
|
|
|
mesh.position.y = -5.14;
|
|
|
|
mesh.position.z = -48.39;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 20;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeLarge.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -61.58;
|
|
|
|
mesh.position.y = -2.2;
|
|
|
|
mesh.position.z = -19.8;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = -10.27;
|
|
|
|
mesh.rotation.z = -0.01;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeLarge.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -76.98;
|
|
|
|
mesh.position.y = -2.94;
|
|
|
|
mesh.position.z = -17.6;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 18;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeLarge.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -60.120000000000005;
|
|
|
|
mesh.position.y = -4.4;
|
|
|
|
mesh.position.z = -40.32;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 17;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeLarge.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 82.83;
|
|
|
|
mesh.position.y = 0;
|
|
|
|
mesh.position.z = -27.86;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 15;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 8;
|
|
|
|
mesh.scale.y = 8;
|
|
|
|
mesh.scale.z = 8;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeLarge.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 57.17;
|
|
|
|
mesh.position.y = -4.74;
|
|
|
|
mesh.position.z = -59.38;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 15.21;
|
|
|
|
mesh.rotation.z = -0.22;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeLarge.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 45.37233907250981;
|
|
|
|
mesh.position.y = -4.65;
|
|
|
|
mesh.position.z = -25.210022209598456;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 13;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeLarge.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 75.5;
|
|
|
|
mesh.position.y = -1.47;
|
|
|
|
mesh.position.z = -2.2;
|
|
|
|
mesh.rotation.x = -0.26;
|
|
|
|
mesh.rotation.y = 34.6;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 8;
|
|
|
|
mesh.scale.y = 8;
|
|
|
|
mesh.scale.z = 8;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeLarge.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -76.98;
|
|
|
|
mesh.position.y = -5.87;
|
|
|
|
mesh.position.z = -5.14;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 11;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeLarge.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -41.95357645382262;
|
|
|
|
mesh.position.y = -4.65;
|
|
|
|
mesh.position.z = -45.43;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 10;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeLarge.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -45.55651309423385;
|
|
|
|
mesh.position.y = -4.65;
|
|
|
|
mesh.position.z = -24.727109114505396;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 9;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeLarge.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 38.11;
|
|
|
|
mesh.position.y = -4.65;
|
|
|
|
mesh.position.z = -39.41919592312735;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 9.52;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeLarge.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -42.31;
|
|
|
|
mesh.position.y = -4.65;
|
|
|
|
mesh.position.z = -64.16;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 6;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeLarge.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = 55.71;
|
|
|
|
mesh.position.y = -8.07;
|
|
|
|
mesh.position.z = -13.59;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 5;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 8.06;
|
|
|
|
mesh.scale.z = 10.99;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeLarge.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -51.32;
|
|
|
|
mesh.position.y = -4.65;
|
|
|
|
mesh.position.z = 8.06;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 4;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
mesh = treeLarge.clone();
|
|
|
|
material = materialTreesAndRocks.clone();
|
|
|
|
mesh.materials = [material];
|
|
|
|
mesh.position.x = -49.49962483002227;
|
|
|
|
mesh.position.y = -4.65;
|
|
|
|
mesh.position.z = -8.467200483592032;
|
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = 3;
|
|
|
|
mesh.rotation.z = 0;
|
|
|
|
mesh.scale.x = 5;
|
|
|
|
mesh.scale.y = 5;
|
|
|
|
mesh.scale.z = 5;
|
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
mesh.updateInstance('scale');
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
mesh.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
this.treeSmall.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
this.treeMedium.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
|
|
|
burningTreeParticleEngine = this.burningTreeParticleEngine.clone();
|
|
|
|
burningTreeParticleEngine.position = mesh.position.clone();
|
|
|
|
burningTreeParticleEngine.position.y += mesh.geometry.boundingBox.max.y + 5;
|
|
|
|
burningTreeParticleEngine.updateInstance('position');
|
|
|
|
this.treeLarge.burningTreeParticleEngine = burningTreeParticleEngine;
|
|
|
|
|
2018-03-07 08:05:49 +01:00
|
|
|
|
2018-03-07 08:14:48 +01:00
|
|
|
var type = 0;
|
2018-03-07 08:13:10 +01:00
|
|
|
|
2018-03-07 08:43:25 +01:00
|
|
|
for (var x = -200; x < 200; x += 30) {
|
2018-03-07 08:05:49 +01:00
|
|
|
|
2018-03-07 08:13:10 +01:00
|
|
|
for (var z = -170; z > -230; z -= 10) {
|
2018-03-07 08:05:49 +01:00
|
|
|
|
2018-03-07 08:17:24 +01:00
|
|
|
type += 1;
|
2018-03-07 08:14:48 +01:00
|
|
|
|
2018-03-07 08:17:24 +01:00
|
|
|
if (type == 1) {
|
2018-03-07 08:13:10 +01:00
|
|
|
mesh = treeSmall.clone();
|
|
|
|
mesh.position.y = -14.19;
|
|
|
|
}
|
2018-03-07 08:17:24 +01:00
|
|
|
if (type == 2) {
|
2018-03-07 08:13:10 +01:00
|
|
|
mesh = treeMedium.clone();
|
|
|
|
mesh.position.y = -10.26;
|
|
|
|
}
|
2018-03-07 08:17:24 +01:00
|
|
|
if (type == 3) {
|
2018-03-07 08:13:10 +01:00
|
|
|
mesh = treeLarge.clone();
|
|
|
|
mesh.position.y = -4.43;
|
2018-03-07 08:17:24 +01:00
|
|
|
type = 0;
|
2018-03-07 08:13:10 +01:00
|
|
|
}
|
|
|
|
|
2018-03-07 08:15:58 +01:00
|
|
|
mesh.materials = [materialTreesAndRocks];
|
2018-03-07 08:19:40 +01:00
|
|
|
mesh.position.x = x;
|
2018-03-07 08:42:58 +01:00
|
|
|
mesh.position.z = z * Math.random() - 200;
|
2018-03-07 08:13:10 +01:00
|
|
|
mesh.rotation.x = 0;
|
|
|
|
mesh.rotation.y = Math.random() * 3;
|
|
|
|
mesh.rotation.z = 0;
|
2018-03-07 08:18:19 +01:00
|
|
|
|
2018-03-07 08:13:10 +01:00
|
|
|
mesh.updateInstance('materials');
|
|
|
|
mesh.updateInstance('position');
|
|
|
|
mesh.updateInstance('rotation');
|
|
|
|
}
|
2018-03-07 08:05:49 +01:00
|
|
|
}
|
|
|
|
|
2018-03-07 07:43:44 +01:00
|
|
|
this.treeSmall.visible = false;
|
|
|
|
this.treeSmall.updateInstance('visible');
|
|
|
|
|
|
|
|
this.treeMedium.visible = false;
|
|
|
|
this.treeMedium.updateInstance('visible');
|
|
|
|
|
|
|
|
this.treeLarge.visible = false;
|
|
|
|
this.treeLarge.updateInstance('visible');
|
2018-03-07 07:30:06 +01:00
|
|
|
|
2017-11-27 13:46:06 +01:00
|
|
|
GameLib.Event.Emit(GameLib.Event.GAME_LOADED);
|
|
|
|
|
2018-03-06 14:50:37 +01:00
|
|
|
//@ sourceURL=entityLoaded.js
|