Real Time Slicing Visualizer Demo

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 :slight_smile:)

6 Likes

I also wanna confirm a few things seen:

  • The line drawn and the arrows are all gui objects, not billboard or surface guis.
  • Yes it magically also works in first person, despite your mouse being locked to the center of the screen.
2 Likes

This feature looks great! Nice job on it! How long did it take to make? It’s extremely cool!

1 Like

I stated this on the post :slight_smile:
But overall it took about 1-2 hours!

1 Like