Range Circle Indicator

A few days ago I made my own range circle indicator for my personal Tower Defense project, which worked well while still being performant!
image-334

After making it, I decided to add in an effect where unaccessible regions would be highlighted in red (which is more apparent if you look at games like BTD6). While I did manage to somewhat make it, it would often times glitch out so I ultimately scrapped.
image-259

Feedback appreciated!

8 Likes

For those wondering how the effect was made. The entire thing is essentially just one EditableMesh, where vertices would be adjusted depending on raycasts and if it hit something.

This is possible without editable meshes but not very performant :sweat_smile:

1 Like

this is an awesome use case for editable meshes, I remember seeing posts about this sort of thing being made before with complicated math involving multiple triangle parts.

awesome stuff man!

1 Like

Hello thom463s

What a neat idea indeed!
Do you mind elaborating more on the glitch please?
What is your expected behavior and what are you seeing instead?

2 Likes

This range circle indicator looks great! I like how it looks! Nice job on it! How long did it take to make?

Hello, the glitch mentioned wasn’t because of anything related to EditableMeshes.
It’s just that the way I implemented the red regions would often times make it glitch out (either because of my poor math skills or bad coding).

I appreciate your concern!

1 Like

This didn’t take no longer than a day to make! I do hope they release EditableMeshes soon though, like what they did to the Audio API.

actually crazy. i’ve been wondering how stuff like this has been made before, and to hear that it takes a day or less is mindblowing

Im hoping to do something similar to this but im not exactly good at things like vectors or vertices so man this looks so confusing