Posted By: robertbruce
Maths question spawning ent around circle - 04/12/12 15:43
Hello,
How could I code an object that spawns entities around it in a circle at a set distance.
For instance, a random angle is chosen 1-360 and the object is spawned at distance of 100 at the random angle.
I can think of several ways of doing this like random pan then move to set distance but there must be a mathematician who knows better.
thanks,
Rob
How could I code an object that spawns entities around it in a circle at a set distance.
For instance, a random angle is chosen 1-360 and the object is spawned at distance of 100 at the random angle.
I can think of several ways of doing this like random pan then move to set distance but there must be a mathematician who knows better.
thanks,
Rob