Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
4

How do I seperate the unions with the new CSG API?

Asked by 6 years ago

I was trying out the new CSG API by cutting some blocks, however the cutted block just won't seperate. It still acts like a whole block, even though it looks like this: http://prntscr.com/l89rsb But on the replies on the, the results are different from mine.

This is my script.

local newUnion = script.Parent:SubtractAsync({workspace.Cut})
newUnion.Parent = workspace
newUnion.CFrame = script.Parent.CFrame
script.Parent:Destroy()
0
Unions are always one block, even in Studio. There ain't no way my guy, never been a thing INOOBE_YT 387 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

I saw someone do exactly that! The solution is cloning your first union, creating a negative part that goes from the middle to one side, then from the middle to the other side for the second union, and unionizing each side of the two base unions (separately). Now you'll have two unions that are cut along the middle but not connected to each others!

Ad

Answer this question