AutoMovie API
    Preparing search index...

    Function createObstacle

    • A low obstacle or a barrier on the ground: a railway crosstie, a filled sandbag, a portable concrete barrier, a steel crowd barrier, or two stanchions with a rope between them.

      Each stands centred on X with its back at the origin's Z and its front toward +Z, the side it is approached from, as createKerb stands. A crosstie, a sandbag and a concrete barrier declare top, the top face, and edge, the top's front edge along +X with +Y up and +Z out of the face below: the near side and depth a stepping-over act reads (stepOver), so a crosstie and a sandbag are stepped over and a concrete barrier, 0.81 m high, is refused as cover too high to step. A sandbag also declares leftEnd and rightEnd, handles on its two ends' tops where it is lifted. A crowd barrier declares rail, its top rail, a bar a body leans on or grips. The stanchions declare rope, the rope between their tops, and leftPost and rightPost, the posts gripped to move them, each a bar.

      Parameters

      • params: createObstacle.IParams

        The kind, a crosstie's section and length, and any dimension the author fixes.

      • Optionalseed: string | number

        The seed that draws a crosstie's section and length when they are not given and every dimension left free inside its band; absent, the first of each and the middle of each band.

      Returns Archetype<createObstacle.Affordance, createObstacle.Dimension>

      The obstacle.

      For a section or length FOR-108 does not list or one named for another kind, a fixed dimension outside its band, or one only another kind has.