- Home /
Represent a AnimationCurve smoothly with Handles.Bezier
I want to draw an AnimationCurve into the editor 3D space and have it appear as a nice smooth bezier curve using the Handles.bezier function. The problem I am having is that the outTangent and inTangent values of the AnimationCurve keyframes are basically stored in like 0 to 1 values or something arbitrary as pertaining to 2D curves and the Handles.Bezier tangent values are basically Vector3 Positions. I can't quite wrap my head around what needs to be done to turn an AnimationCurve tangent into a proper Tangent I can feed into Handles.Bezier, does anyone know about this?
Comment