Struct ufbx.ufbx_keyframe
Single real value
at a specified time
, interpolation between two keyframes
is determined by the interpolation
field of the previous key.
If interpolation == UFBX_INTERPOLATION_CUBIC
the span is evaluated as a
cubic bezier curve through the following points:
(prev-time, prev-value)
(prev-time + prev-right.dx, prev-value + prev-right.dy)
(next-time - next-left.dx, next-value - next-left.dy)
(next-time, next-value)
HINT: You can use ufbx_evaluate_curve(ufbx_anim_curve *curve, double time)
rather than trying to manually handle all the interpolation modes.
Assembly: ufbxWrapper.dll
Syntax
public struct ufbx.ufbx_keyframe
Fields
interpolation
Declaration
public ufbx.ufbx_interpolation interpolation
Field Value
left
Declaration
public ufbx.ufbx_tangent left
Field Value
right
Declaration
public ufbx.ufbx_tangent right
Field Value
time
Declaration
Field Value
value
Declaration
Field Value