Chainsaw Log-Cutting System - Is it possible?

I am looking to create a chainsaw tool that allows you to drag the cursor across a log in any line, not necessarily straight, which then separates the log into two pieces from that line. I have been trying to come up with a way to implement this in Roblox, but I am not sure it’s entirely possible to do in the way I envision it.

For Example:

One idea I have come up with is creating the log out of many small blocks which then can be individually destroyed if they come into contact with the cursor. I could configure welding in a certain way so that, if a line was drawn across the log, the two separate parts would remain intact. However, this could cause some optimization issues and might not look very visually pleasing.

Does anyone have any ideas for a realistic approach to implement this? I’m not looking for any scripts; just a theoretical approach.

You could use Part:SubtractAsync() on the log, tho I never worked with it so Im not sure if It’s a good idea or not

1 Like

I did consider this, but the issue is that the two pieces will be unioned and will not act as two new separate parts like I want them to.

2 Likes

I remember watching this video like a year ago I think it could help you out based off what you just described.

He shows the process of him making a tool where he can drag his mouse cursor across a part and it will slice it into multiple different parts. so it is not just getting cut and acting as one part it is 2 different parts.

2 Likes

Wow, this is an awesome resource, thank you!

1 Like

Realistically, a chainsaw does not cut a curved line.

You could divide up the cursor movement into a number of points and generate wedges/parts based on it which would subtract from the part being cut.

image

2 Likes