Player with name on top?

Hi

I created a sphere with a plane/text (child), everything fine, so far.

When pyshics or rotation is applied to the mesh, the label do the same (obviously) but I only want the label stay on top and the line too but if the mesh change the position then label follow it.

I created this playground to show the (non-desired) rotation effect.

https://www.babylonjs-playground.com/#7PLYSR

I did it in this way to improve the scenarios like the solar system to be able to attach a label to each planet and they rotate whitout affect the label rotation but translation (position).

Thanks.

Hello and welcome :wave:t4:!

You can use the Babylon GUI tracking position feature, like this:
https://www.babylonjs-playground.com/#7PLYSR#1

Take a look at the doc for more information:
https://doc.babylonjs.com/how_to/gui#tracking-positions

2 Likes