- Home /
Text rotation (3d text)
Hello,
i've created a tetrahedron, which is built from over 6000 points and I'm rotating it. I need to create a name for every vertex (for example a, b, c, d) and to rotate them just like I'm rotating tetrahedron. To do this I'm using 3d text component, but I don't know how to match function which is rotating my tetrahderon to the function which is rotating my text. I need to obtain the effect of text which is following the vertex. Any suggestions would be very appreciated. Code which i"m using for rotating tetrahedron:
void Update() {
transform.Rotate(new Vector3(Time.deltaTime * 20, 0, 0));
}
Code which i"m using for rotating text: void Update () {
transform.Rotate(new Vector3(Time.deltaTime * 20, 0, 0));
}
Answer by domportera · Jul 18, 2018 at 08:54 PM
If you make the text object a child of the point that it is referring to, it should move along with the point.\
Don't know if that helps ¯_(ツ)_/¯
I didn't know that solution could be so simple :) I moved my 3d text component under my game object which corresponds for displaying gizmos and it worked :) Thank you.
Your answer
![](https://koobas.hobune.stream/wayback/20220612170957im_/https://answers.unity.com/themes/thub/images/avi.jpg)