Mootools Server-Side

Im new to node.js and meteor. I like the class system in mootools. Is there something similar in meteor? Or should I use mootools for that?? (inheritance, events…)

Meteor implements ES2015 via https://babeljs.io/
You can simply use the new standardized classes:

class SkinnedMesh extends THREE.Mesh {
  constructor(geometry, materials) {
    super(geometry, materials);

    this.idMatrix = SkinnedMesh.defaultMatrix();
    this.bones = [];
    this.boneMatrices = [];
    //...
  }
  update(camera) {
    //...
    super.update();
  }
  static defaultMatrix() {
    return new THREE.Matrix4();
  }
}

see: https://babeljs.io/docs/learn-es2015/#classes

1 Like

thanks for that sample :slight_smile: i ditn’t know that

1 Like