#would i use runservice for lerping
1 messages · Page 1 of 1 (latest)
l[erp]ing already int[erp]olates
runservice
thnaks
RunService.RenderStepped:Connect(function(dt)
part.CFrame = part.CFrame:Lerp(targetCF, math.exp(-5 * dt))
end)
what would this do anyways
it will smoothly interpolate (lerp) to a target position
and scale appropriately to framerate
it's a technique called smoothlerp
its a way to normalize deltatime
for smoother lerps
oh so it just essentially makes the lerp smoother
a journey through decay and delta time (I had to learn differential equations for this oh boy)
Slides: https://www.patreon.com/posts/105228270 for my patreon supporters 💞
The slides are much nicer in person!! like, the AV team on site had me lower the refresh rate on my laptop because we couldn't get it to work otherwise, and on top of that,...
there's a whole talk about it
if ur interested
its time to start using an adblocker friend
lowkey dont know any free adblockers
thanks