AutoMovie API
    Preparing search index...

    Function createCar

    • A car: a sedan, a hatchback, a panel van or a crew-cab pickup, with doors, windows, a bonnet and a boot, tailgate or sliding door that open, reclining seats, the driver's controls, and road wheels that steer and spin.

      The car stands on its wheels with the middle of its wheelbase over the origin, its front toward +Z. The body is an open frame (a floor, a bonnet, a roof on pillars and low door panels) so the seats and the controls show through it. The driver sits on the side drive names; left is +X. Everything a driver's and a passenger's act reads is an affordance: the doors' hinges with their handles and the openings behind them, the windows that slide down and the openings above them, the seats and their reclining backs, the steering wheel, the accelerator, the bonnet, and what the class carries behind the cabin: a boot's lid and load floor, a van's sliding door and cargo floor, a pickup's tailgate and bed. The front road wheels steer as the steering wheel turns, and every road wheel spins on a knob that driveCar turns by the distance covered. Getting in by a front door is HumanTravelCar.getIn. The opt-in HumanTravelCarExit.getOut stages exit from the rear bench through an already-open adjacent rear door. Rear-door entry, sliding doors and tailgates serve static staging (#3498).

      Parameters

      • params: createCar.IParams

        The class, its read model and tyre, the driving side and any dimension the author fixes.

      • Optionalseed: string | number

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

      Returns Archetype<createCar.Affordance, createCar.Dimension>

      The car.

      For a fixed dimension outside its band or one the class lacks, or a model or tyre the class does not offer.