rotation - threejs how to rotate around object's own center,instead …
https://stackoverflow.com/questions/28848863/threejs-how-to-rotate-around-objects-own-center-instead-of-world-center
WebMar 4, 2015 · var pivot = new THREE.Group(); scene.add( pivot ); pivot.add( mesh ); In your animation loop, rotate the pivot; pivot.rotation.y += 0.01; EDIT: A different solution is to translate the geometry vertices so the geometry is centered around, or near, the origin: geometry.translate( distX, distY, distZ );
DA: 69 PA: 60 MOZ Rank: 26