math docs
    Preparing search index...

    Function addBone

    • Appends a bone spanning start to end, copying both.

      The bone's length is taken from the distance between them. When this is the first bone the chain's base is moved to start.

      Parameters

      • chain: Chain2

        the chain to append to

      • start: readonly [number, number]

        the bone's start point

      • end: readonly [number, number]

        the bone's end point

      • joint: Joint2 = ...

        the bone's joint, or a fresh unconstrained one if omitted

      Returns Bone2

      the appended bone