set TextGeometry pivot point

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..

Author: Fantashit

2 thoughts on “set TextGeometry pivot point

  1. Right after generating your TextGeometry you should center the pivot using THREE.GeometryUtils.center( geometry ).

Comments are closed.