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: Chain3

        the chain to append to

      • start: readonly [number, number, number]

        the bone's start point

      • end: readonly [number, number, number]

        the bone's end point

      • joint: Joint3 = ...

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

      Returns Bone3

      the appended bone