math docs
    Preparing search index...

    Function straighten

    • Lays the chain out straight from its base along direction, discarding the current pose.

      A dead-straight chain is the worst starting pose for solve - see the note there. Bend direction slightly between bones instead if the chain will be solved cold.

      Parameters

      • chain: Chain3
      • direction: readonly [number, number, number]

      Returns Chain3