Currently, I am in the process of creating a new object that should inherit from THREE.Object3D(). In my code snippet, you can see how I have set it up:
function myNewObject() {
THREE.Object3D.call(this);
//...
}
myNewObject.prototype = new THREE.Object3D();
myNewObject.prototype.constructor = myNewObject;
One particular aspect that is puzzling me is why I need to invoke 'THREE.Object3D.call(this)' inside myNewObject(). Shouldn't it suffice that I am assigning the prototype to a THREE.Object3D() object?