math docs
    Preparing search index...

    Function getBoneRotation

    • Writes the rotation taking up onto the direction of bone index into out.

      Use it to orient a mesh along a bone, passing whichever axis the mesh is modelled along - up is [0, 1, 0] for a cylinder or capsule built along Y. The roll about the bone is arbitrary.

      Parameters

      • out: quat.Quat
      • chain: Chain3
      • index: number
      • up: readonly [number, number, number]

      Returns quat.Quat