I found this module script and have been trying to use and modify it a bit, but I have literally no clue what any of these things do
export type VoxelModel<T> = --is this something like an object or class?
local OverlapParam = OverlapParams.new() -- something to do with overlapping parts?
OverlapParam.FilterType = Enum.RaycastFilterType.Include -- something with raycasting?
Sequence = NumberSequence.new{ -- I have literally no clue
NumberSequenceKeypoint.new(0,0),
NumberSequenceKeypoint.new(1,0)
}
Any help on understanding any of these things or what their purpose is would be much appreciated. Thanks in advance.
The only thing I understand here is the numbersequence object. It just contains a graph based off of numbers. It might be easier to explain if I know whether or not you understand color sequences. Do you?
This is apart of luau’s type checking (which is really self-explanatory for the most part) it just exports the type VoxelModel which has a the <T> in it making it a generic. If you want to learn more about that check out the official luau website Type checking - Luau (luau-lang.org)
Adding on to the OverlapParam question, this basically changes how the those WorldRoot functions will filter objects either excluding or including them in the operation.