Switch from mock Vector3 to native vector lib

This commit is contained in:
aaron 2024-11-13 22:35:16 +00:00
parent 5abd5eee91
commit 49cc551493
5 changed files with 52 additions and 95 deletions

View file

@ -70,12 +70,14 @@ for name, class in {
UDim = UDim,
UDim2 = UDim2,
Vector2 = Vector2,
Vector3 = Vector3,
Rect = Rect
} :: Map<string, { [string]: any }> do
aggregates[name] = class.new
end
aggregates.Vector3 = vector.create
aggregates.vector = vector.create
-- applies table of nested properties to an instance using full vide semantics
local function apply<T>(instance: T & Instance, properties: { [unknown]: unknown }): T
if not properties then