AutoMovie API
    Preparing search index...

    Function createSword

    • A blade held by its hilt: a longsword, an arming sword, a sabre, a katana, a rapier, a dagger or a knife.

      The weapon stands along +Y with its point up and the blade's shoulder, where the guard sits, at the origin; the hilt hangs below. The true edge faces +Z and the flats face +X and -X. A sabre's and a katana's blade curves back toward -Z, so the edge is the outside of the curve, and bladeLength is the straight line from the shoulder to the point. The blade is SEGMENTS flat boxes, each a declared part blade-<k> from the guard out, so a contact names the part of the blade that met: the low numbers are the strong, the high the weak.

      Mass and balance are cited, not derived: the parts carry mass shares that put the centre of mass at the drawn balance above the guard, the hilt's parts taking what the blade's taper leaves. properties gives the centre and the inertia, and moment the inertia about the grip that a cut works against.

      Parameters

      • params: createSword.IParams

        The kind, the model where the kind has read models, and any dimension the author fixes.

      • Optionalseed: string | number

        The seed that picks the model left free and draws every dimension left free inside its band; absent, the first model and the middle of each band.

      Returns Archetype<createSword.Affordance, createSword.Dimension>

      The weapon.

      For a model not of the kind, a fixed dimension outside its band, or one the model gives.