Function fixTangentList

  • Try to fix a list of tangents that will be fed to a curve frame generator, in-place. Each tangent is normalized, and zero-length tangents are replaced by the nearest tangent.

    Returns

    A new list of curve tangents without any invalid tangents.

    Parameters

    • tangents: vec3[]

      A list of curve tangents (direction of the curve).

    Returns vec3[]

Generated using TypeDoc