For example, I want to open a box, how to let the lid of the box rotate along the edge line?
var axis = new THREE.Vector3(0, 1,0);
obj.rotateOnAxis(axis,-Math.PI / 2);
I want its axis to be on the left and right sides.
For example, I want to open a box, how to let the lid of the box rotate along the edge line?
var axis = new THREE.Vector3(0, 1,0);
obj.rotateOnAxis(axis,-Math.PI / 2);
I want its axis to be on the left and right sides.