Different use cases. Region3s find all parts within a box; shapecasts find the next part in a direction.
Hey, you guys got any updates on margins?
I think there’s a slight oversight in the error message. I did read the limit is 128 studs, but why does it mention the max radius is 512 studs instead?
Edit: The real radius limit is 256 studs apparently, but that still concludes that the limitations are documented wrong in the error and the post itself
I want this information for my use case. I don’t care if the part it gets is arbitrarily chosen. Will it ever be available?
There are multiple, trivial, workarounds to this, but if it were possible to just receive it’d make the code simpler.
We raised the maximum size. Thanks for noticing; the post has been updated.
The maximum radius in the spherecast error message is wrong. We have a fix for that going out soon.
Semi-regular check on status of margins. Would love to get to use these soon!
Another weekly check on margins. ETA?
There seems to be a bug when using Workspace.Spherecast on mobile. Cast data is very noisy on mobile. Test it out here: Car Test - Roblox
On PC (MacBook Pro16 M1Pro):
On Mobile (iPad Pro 2019):
Thanks, this is fixed in the next release. Nice handling on the suspension BTW.
We had a bug in low-level math code that was specific to mobile CPUs. We’ve made improvements to our automated test systems so this won’t happen again.
Margins are being worked on in parallel with partcasts. I won’t provide a firm ETA because exact timing is subject to change, but know that we consider these important
Would it at least be more performant to use a shapecast instead of lots of raycasts though? I heard raycasts were pretty optimized compared to before but idk if shapecast are optimised at all
I’m having similar issues as @supersanjeet11 with shapecasts on mobile.
Here I’m using a cubecast that matches the CFrame of the HumanoidRootPart.
Computer:
Mobile: (iPhone 13 Pro)
As you can see, on mobile the shapecast seems to have many inaccuracies as the CFrame rotates which causes the character to bounce and vibrate.
When using a single raycast this effect does not occur.
I don’t want to have to resort to using multiple rays around the character as cubecasting is perfect for character systems like this.
The release that contains the fix for this was delayed due to some rollout issues.
This bug should be fixed this week.
Truly, and i mean TRULY, my favourite feature of roblox studio!
Finally, I dont have to go through the pain of :GetPartsInBoundingBox !
Works great on desktop! Already planning to use this on mobile when the fix is ready.
Most phones (>94%) have this fix now; the rest will be taken care of the next time we force upgrade the mobile app.
Just have the projectile do the shapecast. The magnitude of the direction vector for the shapecast would be the distance the projectile travels per frame.
This actually seems like a pretty useful feature. Thanks, roblox!
Are there any updates on the margins?
Amazing work! And thank goodness it’s out. Great work guys!