three-text2d
three-text2d copied to clipboard
Allow for rotation to be set with SpriteText2D with extra parameter
Hello,
Regarding this stackoverflow question: https://stackoverflow.com/questions/23508376/how-to-rotate-a-sprite-object-in-three-js
I have noticed I couldn't modify the rotation of a sprite after it has been created. Would it possible to pass an extra parameter for the rotation?
Is there any way to do this? I tried all of these but no success:
sprite.rotation.set(new THREE.Vector3( 0, 0, Math.PI / 3));
sprite.rotateX(Math.PI / 3);
sprite.rotation.setFromVector3(new THREE.Vector3( Math.PI / 3, 0, 0));
@dashko
https://threejs.org/docs/#api/en/geometries/TextGeometry
https://discourse.threejs.org/t/create-3d-text-at-runtime/2045/2
ps: I have not looked into this anymore, but hopefully that helps you in any way,