The archetype's affordance ids.
The archetype's free dimensions.
An empty archetype under construction.
The archetype's affordance ids.
The archetype's free dimensions.
The model's id and name, and the producer's draws, which name the producer.
An affordance.
The contact at rest, its frame in the model's space; extent is null for every kind but stack-top.
This builder.
Bind a construction point to a real part already laid by this builder.
A ball.
Part id, unique in the archetype.
The ball's radius, metres.
Its centre, metres.
Optionaloptions: ArchetypeBuilderTypes.IOptions
Colour and relative density.
This builder.
A box.
Part id, unique in the archetype.
Full sizes along the part's X, Y and Z, metres.
The box's centre in the model's space, metres.
Optionaloptions: ArchetypeBuilderTypes.IOptions
Colour, relative density and rotation.
This builder.
The finished archetype.
The total mass, kilograms, from the producer's cited band.
Optionalcontact: {Resting and ground materials select their cited friction pair. An explicit restitution is admitted from 0 to 1; otherwise restitution remains unknown; a material reference never supplies a universal scalar. Drag and outcome are the launched body's optional flight data. The constructor's physical material declaration is required independently of optical colours and resting surfaces.
The archetype at rest.
Add one actual convex wall cell, sharing its visible and physical boundary.
Unique part id.
Cell-local finite corners in metres, or an immutable admitted cell prepared by ArchetypeConvexCell.of for repeated rigid instances.
Local origin in model metres; zero when absent.
Optionaloptions: ArchetypeBuilderTypes.IOptions
Existing colour, rigid rotation, mass weight and surface options.
This builder.
Declare the sets of parts a hit breaks off, each a fragment; the threshold is the body's contact.fracture, given to build as outcome.
The fragment sets, each an id, the parts it carries away and the contacts on them that move none; declared after those contacts.
This builder.
A straight round bar between two points: a leg, a rail, a shaft, a wheel seen as a short thick bar.
Part id, unique in the archetype.
The bar's radius, metres.
The centre of one end, metres.
The centre of the other end, metres.
Optionaloptions: ArchetypeBuilderTypes.IOptions & { round?: boolean }
Colour and relative density; round gives the bar hemispherical ends beyond the two points; a rotation is ignored, because the two ends fix it.
This builder.
A span: a taut line between two frames of the model, laid again between them after every pose (ArchetypeSpan), such as a bowstring between its limbs' tips.
Part id of the line, unique in the archetype.
One end: a part already recorded with a point in its own coordinates, or an affordance already recorded.
The other end, likewise.
The line's radius, metres.
Optionaloptions: ArchetypeBuilderTypes.IOptions
Colour and relative density; a rotation is ignored, because the two ends fix it.
Optionallength: number
The line's rest length, metres, when it has one: the span reports itself slack whenever its ends are closer.
This builder.
Place a visual mesh in model metres with an optional flat colour and rotation. The builder takes the mesh buffers as supplied.
Optionaloptions: Pick<ArchetypeBuilderTypes.IOptions, "rotation" | "color">
What every producer assembles an archetype with: dimensioned primitives, actual convex cells or visual meshes, the affordances an act reads, and the total mass.
A producer states named dimensions and formulas: a box by its size and centre, a rod by its radius and ends, a ball by its radius and centre, or an actual convex wall by its generating corners. Hollow forms assemble separate wall cells so rendering, mass and collision preserve their empty space. The repository keeps every model as coarse as identification allows. Parts carry unit scale, flat colours and no texture.
buildcomputes the centre of mass and inertia from the parts under the stated total mass (ArchetypeMass) and returns the Archetype.