- Home /
How to draw a circle with move limit radius and offset radius for obstacles?
Hi everyone!
So I am currently making a tactical strategy game where you can move around freely but you are limited by your energy (kind of like xcom but without a grid). Using NavMesh and finding the distance from the player position to the mouse click i can restrict the movement perfectly fine but now I am trying to find some way to draw a circle around the player at radius of their moveLimit (energy) and be able to reduce the radius if there is an obstacle or difficult terrain in that direction. Currently I am using a Line Renderer to draw a circle of radius movelimit around the player, clear it when moving and reset when at destination.
Below are some pictures of what I am trying to accomplish (please forgive my "amazing" art skills :) ). Thank you for any suggestions!
Regular:
Obstacle:
Your answer
![](https://koobas.hobune.stream/wayback/20220612232316im_/https://answers.unity.com/themes/thub/images/avi.jpg)