Hi, I wonder how can I use the lookAt() method with a TextGeometry.
I saw only a hack for positioning a text:
var centerOffset = -0.5 * ( textGeo.boundingBox.max.x - textGeo.boundingBox.min.x );
textMesh1.position.x = centerOffset;
But If I use lookAt()
with text object It rotates from the bottom-left.
Wrapping the TextGeometry
in a Object3D
does not help either.. or at least I failed..
Im also interested in setting base point for other geometries.
Thanks for helping..
Right after generating your TextGeometry you should center the pivot using THREE.GeometryUtils.center( geometry )
.
magnificent, ty.
Now, you do this with: textGeo.center();
Most helpful comment
Now, you do this with:
textGeo.center();