Update spring docs

This commit is contained in:
centauri 2025-06-23 21:58:54 +01:00
parent 5f752fe903
commit 2518e292ed
2 changed files with 4 additions and 4 deletions

View file

@ -186,7 +186,7 @@ local function spring<T>(source: () -> T, period: number?, damping_ratio: number
-- set output to goal
output.cache = data.source_value
local setter = function(p)
local config = function(p)
local x = p.position
local v = p.velocity
local dv = p.impulse
@ -229,7 +229,7 @@ local function spring<T>(source: () -> T, period: number?, damping_ratio: number
output.cache = v
return v
end, setter
end, config
end
local function step_springs(dt: number)