three-text2d icon indicating copy to clipboard operation
three-text2d copied to clipboard

Allow for rotation to be set with SpriteText2D with extra parameter

Open RiddleTime opened this issue 8 years ago • 2 comments

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?

RiddleTime avatar Jul 02 '17 16:07 RiddleTime

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 avatar Apr 25 '20 05:04 dashko

@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,

RiddleTime avatar Apr 28 '20 20:04 RiddleTime