We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
lookAt()
Wrapping the TextGeometry in a Object3D does not help either.. or at least I failed..
TextGeometry
Object3D
Im also interested in setting base point for other geometries.
Thanks for helping..
The text was updated successfully, but these errors were encountered:
Right after generating your TextGeometry you should center the pivot using THREE.GeometryUtils.center( geometry ).
THREE.GeometryUtils.center( geometry )
Sorry, something went wrong.
magnificent, ty.
Now, you do this with: textGeo.center();
textGeo.center();
No branches or pull requests
Hi, I wonder how can I use the lookAt() method with a TextGeometry.
I saw only a hack for positioning a text:
But If I use
lookAt()
with text object It rotates from the bottom-left.Wrapping the
TextGeometry
in aObject3D
does not help either.. or at least I failed..Im also interested in setting base point for other geometries.
Thanks for helping..
The text was updated successfully, but these errors were encountered: