For my upcoming game, I wanted to support the ability to slice ingredients (or objects for now) to allow for more customization for the food you make. So I wrote a simple knife tool for slicing parts with the recently released GeometryService API.
But I figured that it may look better if I added some sort of visualizer instead of making the tool automatically cut parts. Instead, the new idea is that you would be able to draw a straight line on your screen, which would then cut the object depending on the line.
So after a lot of trial and error, I present my slicing visualizer demo. This took an hour or two to fully understand, and then code afterwards.
Feedback appreciated!
(Any bugs seen in the video will be squashed accordingly )