// THREE.js instantiation _createTHREENodes() { this.totalContent = new THREE.Group(); // Three JS Object3D Group for this tile and all its children this.tileContent = new THREE.Group(); // Three JS Object3D Group for this tile's content this.childContent = new THREE.Group(); // Three JS Object3D Group for this tile's children this.totalContent.add(this.tileContent); this.totalContent.add(this.childContent); }
constructor(scene, world, resourceManager, workerManager, changedBlocks) { this.scene = scene this.world = world this.resourceManager = resourceManager this.workerManager = workerManager this.dirtyChunks = [] this.chunks = {} this.isReady = false this.meshGroup = new THREE.Group() this.scene.add(this.meshGroup) this.prepare(changedBlocks) }
this.rotationPosition = Math.random(); THREE.Group.apply(this, arguments);
var group = new THREE.Group(); group.scale.multiplyScalar(0.25); this.scene.add( group );