Draw circle to show, how far player can move

Hey guys, so i got another problem about my game. It is an round based third person game, in which the player can only move 60 units of length each round. Now i want to show the player, how far he can move by drawing a circle exactly arround him with the radius of the distance he still can move onto the terrain and groundobjects. I already tried it with the projector, but it draws a circle on every single object in my scene and not a big one. Furthermore i have no idea, how to translate the distance to the radius of my circle, i don’t even know, how to change the radius of the circle at runtime. Do you have any other ideas on how to solve this problem or tipps about my attempt?

Thanks, stevey

1 Answer

1

You have to use a special projector shader. There are two in the projector package that is included in Unity. Just import it (Assets → Import Package → Projectors). Use the “Projector / Light” shader with a black texture that has a white circle in it. Switch the projector to orthographic and your orthoraphic size is you radius, that’s it.

Ok, that helped a lot, thanks. But now the circles are tiled, so there are more than one...Any suggestions?