Thanks!! That would have been smarter: it’s actually just an array of points, and when the simulation is running I extend the last point in the array until it is a certain distance then add another point. I give it width by caching two points that are like perpendicular to the two vectors on either side of a point, and each point can have sub-branches that grow out of either side.
I should have had the points be deltas so that when I rendered the tree the sub-branches would actually be attached to the sides and would grow out, but I ran out of time and hard-coding the points worked okay.
Yeah, I spent a bit of time trying to debug that, but I couldn’t figure out why it doesn’t cut exactly where you click. If you snip/prune at the same spot multiple times, eventually it’s cuts it done to where you had originally clicked it. I’m doing a distance search of every point to find the nearest one, so it must be finding the wrong point or something.
I briefly thought about day/night theming, but somewhere along the way I decided to make it monochromatic and I couldn’t decided on something different that should happen. Maybe like decrease the light bloom at night… although that would essentially just make everything pulse when the simulation is running haha