This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local ReplicatedStorage = game:GetService("ReplicatedStorage") | |
local Matter = require(ReplicatedStorage.Packages.Matter) | |
local Llama = require(ReplicatedStorage.Packages.Llama) | |
local t = require(ReplicatedStorage.Packages.t) | |
local Queue = require(script.Parent.Queue) -- grab from Matter source code | |
local function cleanupData(data) | |
data.connection:Disconnect() | |
table.clear(data) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local ReplicatedStorage = game:GetService("ReplicatedStorage") | |
local Matter = require(ReplicatedStorage.Packages.Matter) | |
local function useAnimation(animator: Animator, animation: Animation, pause: boolean) | |
if pause == nil then | |
pause = false | |
end | |
local state = Matter.useHookState(animator, function(storage) | |
if storage.animationTrack then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local MAX_BUCKET_SIZE = 32 | |
local HashMappedTrie = {} | |
local _COUNT = {} | |
local _KEYS = {} | |
local function shallowCopy(tbl) | |
local newtbl = {} | |
for k, v in pairs(tbl) do | |
newtbl[k] = v |