Update: Increased random point dimension to 3 for less edge-biased random point distribution
You can change it here inside the PartsZone module by changing RANDOM_POINT_DIMENSION:
Heres what a random point dimension of 1 looks like, pretty cool:
Update: Increased random point dimension to 3 for less edge-biased random point distribution
You can change it here inside the PartsZone module by changing RANDOM_POINT_DIMENSION:
Heres what a random point dimension of 1 looks like, pretty cool:
Update: Made :IsPointWithinZone() work reliably for any array of vertices (used to be kinda buggy )
Thanks to the folks at StackOverflow for this function:
Note that this update has slightly slightly decreased the performance of :IsPointWithinZone(), but only by like idk 40% of the original performance so it’s not that much
Update: Changed :IsPointWithinZone() to now use predefined shape check functions instead of using the vertices of the shape (those are reserved for :GetRandomPoint() now)
This SIGNIFICANTLY increased the performance, around 0.000001s (min) to around 0.00004 (max) for each :IsPointWithinZone() call
Update: Added .fromBasePartsVertices constructor, which allows you to define your own vertices AND use MeshParts!
Let me know if you have any issues with tetrahedron creation
I also seperated all the geometry-related functions and tables (such as VertexGroup constructors for parts, .getRandomPointInSimplex, .isPointInBox, etc) into its own module called Geometry, which can be used independently
can you add download link too? (publish script to roblox)
i dont like downloading files
Okay, I’ll publish the module to Roblox. However, you will have to download updates manually as I don’t think the PackageLink is preserved that way Give me a minute…
Here it is!:
Well I tried a little bit and i will write issues , suggestions and questions
And I did not use some methods that I did not know what they were used for.
(used some translate my english is a little bad sorry)
Yeah currently LessSimpleZone doesn’t automatically update anything, if youd like your zones to move with your parts I’d suggest using SimpleZone.fromPart() or SimpleZone.fromPartParallel() instead.
Honestly alot of your issues sounds like you just need to use SimpleZone instead of LessSimpleZone, the post to it is linked on the top
Is a higher quantity of smaller zones more performant than far fewer larger zones?
Nope, if you can combine zones into 1 id suggest to do that
Would you be able to publish this package onto Github? Having Github and Wally support would make it much easier for developers using the Rojo workflow.
It would also be much better for version control and other developers who would like to contribute to this module
I’m going to be honest, I have absolutely 0 idea on how to use git and rojo, especially wally
I’m gonna try to set it up, I’ll update the post if I succeed
Hi,
Can there be zones inside of zones and overlapping zones, that have there own triggers?
Also I see you have a test place for simplezone( I was checking out the test place, why is there Zoneplus in it? and also what is it supposed to do? I walled around but nothing seemed to happen.)…
, is there one for lesssimplezone?
Thanks
Hello
Unfortunately I have forgotten to update the SimpleZone test place Yeah will be making one for LessSimpleZone
The reason why theres ZonePlus in it is because I was doing comparisons.
Hi, did you make an editable place or .rbxl to check out with the latest version?
Thanks
Hi, I’ll make one rn 30charlimit