two objects in the scene. the cube rotate axis should be the cube's center,that's my expect.
but the shoe model's rotate axis is the world's y axis.
my original code is.
cube.rotation.y += 0.01;
shoe.rotation.y += 0.01;
I found a solution in stackoverflow,like this:
cube.rotation.y += 0.01;
var pivot = new THREE.Object3D();
pivot.add(shoe);
pivot.rotation.y += 0.01;
But it doesn't work. And then, I change the shoe's position.
cube.rotation.y += 0.01;
var pivot = new THREE.Object3D();
shoe.position.set(-5,0,0);
pivot.add(shoe);
pivot.rotation.y += 0.01;
The result is better now, but it still not perfect. And since there are a lot of shoe's model, I can't determine different position for every shoe model.