Re: gravity simulator - initial galaxy positions



Greg Neill wrote:
"Gerald Kaszuba" <nospam@xxxxxxxxxx> wrote in message news:42953615$1@xxxxxxxxxxxxxxxxxxxxxxxxx

How can I rotate the galaxy to not be fixed to a plane, but a random angle?

You could generate it "on the Z plane" as you say, and then apply

Woops! I meant the XY plane.

a coordinate rotation to each point to rotate the body to some
arbitrary orientation.  Google coordinate rotation.

That did it, thanks.

Gerald
.