math docs
    Preparing search index...

    Function connectChain

    • Adds a chain whose base is pinned to one end of a bone in a chain already in the structure.

      Add the host first: solveStructure walks chains in insertion order, so a chain always sees its host already posed.

      Parameters

      • structure: Structure2

        the structure to add to

      • chain: Chain2

        the chain to add

      • hostChain: number

        the index of the chain to hang off

      • hostBone: number

        the index of the bone within that chain

      • point: fabrik2.BoneConnectionPoint

        which end of the host bone to attach to

      Returns number

      the index of the added chain