Intergalactic, Planetary
September 13, 2009 by pekuja · 2 Comments
Not much to say about this update, but I’ve got planets now.
Update: Changed my mind, I’ll say a few words. In addition to adding planets, I’ve added free mouse look camera, so I can fly around the planets. I’m also rotating the 3D text to always face the camera so that you can always read it. The planets are actually physics objects, which is not really used, but if they are overlapping each other when created, they’ll push each other away and start flying through the space. And last but not least, I changed the colors.

Hi,
I’m a Unity newbie.
How do you make the 3D text face the camera?
Thanks,
EZ
I just rotate it every frame to face the camera. One line of code in Update():
textmesh.transform.localRotation = camera.transform.localRotation;
I’m not sure this is the absolute best way, but it works, and is really easy to implement.