Skip to content

Instantly share code, notes, and snippets.

View Nimblz's full-sized avatar
🍳
Scrambling eggs

Austin Reuschle Nimblz

🍳
Scrambling eggs
View GitHub Profile
@tiffany352
tiffany352 / Component.lua
Last active April 9, 2018 03:29
ECS using Instances and CollectionService
local CollectionService = game:GetService("CollectionService")
local RunService = game:GetService("RunService")
local Symbol = require(script.Parent.Symbol)
local Maid = require(script.Parent.Maid)
local Component = {}
Component.__index = Component
function Component:getComponent(component)
local Spring = {} do
Spring.__index = Spring
local pi = math.pi
local exp = math.exp
local sin = math.sin
local cos = math.cos
local sqrt = math.sqrt
function Spring.new(dampingRatio, frequency, position)