errrmm...
I done that in my game, so the rotating items won't looking all the same.
this is the code:
transform.eulerAngles.y = Random.value*180;

and it works.

really, it seems that some guys are nitpicking everything just to get something that they don't like about unity...


also, if someone is interesting, this is the last status of my game, made with the unity trial. need yet to buy the full version:

http://www.bysamb.de/priv/unity/rollingballweb1.html


edit:
before anyone cries it out loud: yes, in this version they are all rotated the same, I need to change the code to:
transform.parent.eulerAngles.y = Random.value*180;
but since the trial is over, I couuldn't do that.

Last edited by Samb; 04/21/09 13:23.