use spaces instead of tabs for identing

This commit is contained in:
ewd3v 2024-08-31 20:57:13 +02:00
parent c73cc4bc39
commit 82debeeffe
No known key found for this signature in database
GPG key ID: 18FF74D0F35B288C

View file

@ -203,25 +203,25 @@ local function spring<T>(source: () -> T, period: number?, damping_ratio: number
return function(...)
if select("#", ...) == 0 then -- no args were given
push_child_to_scope(output)
return output.cache
end
push_child_to_scope(output)
return output.cache
end
-- set current position to value
local v = ... :: T
data.x0_123, data.x0_456 = type_to_vec6[typeof(v)](v)
-- set current position to value
local v = ... :: T
data.x0_123, data.x0_456 = type_to_vec6[typeof(v)](v)
-- reset velocity
data.v_123 = ZERO
data.v_456 = ZERO
-- reset velocity
data.v_123 = ZERO
data.v_456 = ZERO
-- schedule spring
springs[data] = output
-- schedule spring
springs[data] = output
-- set output to value
output.cache = v
-- set output to value
output.cache = v
return v
return v
end
end