Hey everyone,
I am currently in the process of developping a game with a circular "arena" and I'm closing in to the actual spawning of my enemies but I was wondering what the best way to determine spawn locations at random was, efficiency wise. (Since I am planning to port this to mobile, any improvement counts)
My idea was something along these lines:
-Determine a random position in X and Z.
-Normalize the vector
-Multiply by the size of my arena.
Would there be a more efficient way of doing it? (EDIT: I intend to only spawn on the edge of the circle of my arena.)
Thanks in advance to any help you guys can send my way,
~Volvary