Intergalactic, Planetary

September 13, 2009 by pekuja · 2 Comments 

Intergalactic, Planetary

Not much to say about this update, but I’ve got planets now. :-P

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. ;-)

About pekuja

Comments

2 Responses to “Intergalactic, Planetary”
  1. EZ says:

    Hi,

    I’m a Unity newbie.
    How do you make the 3D text face the camera?

    Thanks,
    EZ

  2. pekuja says:

    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. :-)

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!