Deep within the Object3D
code lies:
rotateX: function () {
var v1 = new THREE.Vector3( 1, 0, 0 );
return function ( angle ) {
return this.rotateOnAxis( v1, angle );
};
}(),
But what about:
rotateX: function (angle) {
var v1 = new THREE.Vector3( 1, 0, 0 );
this.rotateOnAxis( v1, angle );
},
(or some other form of a more straightforward function.)
Although this is a technical JavaScript question, I am intrigued. Thank you.