With the new API you can call from local scripts
Hey @KUW_Alt1. As @BubasGaming mentioned, it should be reenabled soon.
There were some issues do to interactions between projects and we had to disable the beta to get some clearer signals on what the issue actually was.
I love you sir, this update is THE best
Hey there,
Iām wondering when the beta will be re-enabled today? Iām currently running performance tests on various hardware to determine what needs to be refactored or optimized. Our in-house destruction engine is one of the major components, and we would love to see what still needs to be changed. However, we are currently blocked by the beta.
Hello Creators,
The beta should now be available to everyone again. Thank you for your patience. Remember to restart studio and re-enable the beta feature.
Note: The intermittent crash issues should now be resolved but you might notice some flicker for fast CSG operations. We are working on fixing that
Loving this update a lot! Just needs a few performance updates. One problem iām running into is SplitApart acting weird during :SubtractAsync(). Video explains the problem pretty well. I was wondering if there is a fix, or is this just a weird interaction?
Maybe you are parenting only one results of Subtract Operation. You should parent them all using a loop.
@killnminecraft At a glance it looks like @BubasGaming is correct. The second example (SimpleTools.rbxl) has a couple of modules you should be able to just dump into your places and use that handle a lot of the constraint handling multiple parts and stuff like that
Iām trying the SimpleTools, and I keep getting that Internal Dev only error. Also, which scripts would be a benefit? My current way of using CSG would need some modifying and Iām not sure where to start.
Internal dev error means that the instance of studio doesnāt have the beta feature enabled.
Go check under beta features if itās enabled (I assume it is if youāre able to show the little demo from earlier). Try disabling it, rebooting studio and re-enabling it?
As to which modules might be worth looking at, Iād recommend āCSGModuleā and āConstraintsā that are in ReplicatedStorage. āConstraintsā is a dependency of āCSGModuleā
This is a fantastic update! Itās great to see that Roblox is actively listening to their community.
Do you think this will ever come true? Also is there a reason itās server-only?
For some reason I canāt get it to work, am I doing something wrong?
``lua
local Connection
Connection = RunService.Heartbeat:Connect(function()
local opts = {
SplitApart = true;
CollisionFidelity = Enum.CollisionFidelity.Default;
}
local success, returns = pcall(GeometryService.SubtractAsync, GeometryService, Purple, workspace:GetPartBoundsInBox(Purple.CFrame,Purple.Size,Params), opts)
if not success then
print("Got an error in CSG: "..tostring(returns))
return
end
end)
With the new beta you can call it on client side scripts already. It just doesnāt replicate to the server for safety reasons. We are trying to develop something to allow more freedom while still satisfying all safety concerns
What error are you getting, What parts are you getting for
workspace:GetPartBoundsInBox(Purple.CFrame,Purple.Size,Params)
This looks like it would return Purple
also which would be an issue as youād be subtracting Purple
from Purple
and so ending up with nothing
Why canāt i subtract āalready-unioned partsā on client? is there some kind of bugs ?
Nope, the parameters of the spatial query api exclude the purple part from it.
I literally just now ran into this problem.
Hey do you know anything about this issue?
The game is fine when I subtract in-game generated unions, but when I even just click the union button, I get this error.
CSG3 Error with code: -6
If you could give an example, Iāll take a look at it. Honestly, Iām not the most familiar with the spacial queries. What error is CSG giving you?