Having some trouble rotating objects around its own axis in THREE.js. I am using the STLLoader to import stl files in format model.stl-0, model.stl-1,...model.stl-13. Here is relevant code:
for (i = 0; i<14; i++) {
loader.load( './models/stl/binary/model.stl-'+ i + '.stl' );
};
Which I use to loop the loader and import all the files.
object.rotation.x = value;
Which is how I am trying to rotate the object. However, each model is arranged in an arch, and upon using the above method to rotate, rotation is done around center axis of the entire arch of models rather than around center axis of the individual model itself.
How can I rotate object around its own axis?
Thanks