Lets say we want to cut a part in half!
One approach you could use to cut parts in half is with real-time union operations. This works really well but I encounter a small issue which I can’t wrap my head around.
How does it work?
So, Imagine a part which is influenced by gravity.
Lets say we cut the part from the start. The start is the hitmarker basically. On hit I Instance.new a new part ontop of the hitmark.
Note: I do this twice to generate the illusion the part is cut in half (for the top part and the bottom part). But that is besides the point.
I need to figure out what the Top and the Bottom is of the part from the location we started from.
The new Part Instance will then be resized to cover everything of the part I don’t need.
Then a SubtractAsync is called to make the illusion complete.
How do I know what the Top part of the part is from the cut location?
Sure, you could do it like this:
part:Resize(Enum.NormalId.Top, 20);
Don’t get me wrong, this actually does work! But here is my problem.
If the part has been cut before and looks like this in the environment and we would cut it again
part:Resize(Enum.NormalId.Top, 20);
Sees “Top” as
And not as
I’ve trie Enum
erous things to make this work but have not found a proper solution yet.
This is my last resource.
How could one increase the size of a part in a specific direction even if the axis of the part might have changed?