Hi guys,
Been following this thread all day at work.
I dunno if i´m totally missing the point here, but to get the effect you
look for you only have to add the height of your sprite as an ingredient.
like:
        nx = Math.sin( Math.PI / 180 * angle ) * ( radius + (b.height )  );
        ny = Math.cos( Math.PI / 180 * angle ) * ( radius  + (b.height ) );
While playing with this i also found a thing that made me grit my teeth a
while before realizing it was too simple.
You use:
        circle.graphics.drawCircle( radius, radius, radius -4);
should be:
        circle.graphics.drawCircle( radius, radius, radius -2);
Changing those things got me some nice blue rectangles with a red x in the
mid bottom sitting right on the crust of your earth =)

Amen to whoever was thinking about getting some mathbooks.
I´m really thinking on going back to college to take some math classes, now
that i know what to use it for.

HTH

/Micke

-----Ursprungligt meddelande-----
Från: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com]för Steven Sacks
Skickat: den 9 november 2009 22:43
Till: Flash Coders List
Ämne: Re: [Flashcoders] Placing sprites on the circumference of a circle

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to