Skip to main content

AnimationCurve.SmoothTangents(number index, number weight)

Smooth the in and out tangents of the keyframe at index.
A weight of 0 evens out tangents.

Parameters:

NameTypeDescription
indexnumberThe index of the keyframe to be smoothed.
weightnumberThe smoothing weight to apply to the keyframe's tangents.

Usage

---@type AnimationCurve
local animationcurve;

---@type number
local index;

---@type number
local weight;


animationcurve.SmoothTangents(index, weight)