AutoMovie API
    Preparing search index...

    Function createRock

    • A loose stone: a cobble a hand picks up, or a boulder a person sits on, hides behind or climbs.

      It rests on the ground on its lowest point at the origin, a ball of the drawn diameter. Its mass is its volume at the drawn specific gravity, so a bigger stone is heavier by the cube of its size. A cobble's grip closes one hand round it from -X; a boulder's top is its highest point, facing up, where a person sits or stands, and its side its +Z face at mid-height, facing out, where one leans or crouches behind it. Its surface is stone, granite's, and it rests on that stone, so its body's friction is stone's on concrete.

      Parameters

      • params: createRock.IParams

        The kind and any dimension the author fixes.

      • Optionalseed: string | number

        The seed that draws every dimension left free inside its band; absent, each takes the middle of its band.

      Returns Archetype<createRock.Affordance, createRock.Dimension>

      The stone.

      For a fixed dimension outside its band.