M_Curve:SetControlHandle(ptID, handle, frame, prePoint, syncAngles)

Version added: 12.0
Sets position for one of two bezier handles through a given point on the curve

Arguments:

Name Type Description Default Ver
ptID int32 12.0
handle Vector2 12.0
frame int32 12.0
prePoint bool 12.0
syncAngles bool 12.0

Return value:

void
This stores values in CHANNEL_CURVE animation channel, which have separate subchannels for Curvature, Weight and Offset. There are no special channels for handle position as Vector2, this argument is used to calculate another values. No matter syncAngles argument passed is true or false, curvature channel value would be set to 0.3

Search results

Usage of 'SetControlHandle' is found in the following scripts:

<< Back to M_Curve