ModelRegistration
What registerModel takes beside a bare url: a manifest’s entry, or a
path alone, either with the material the model wears.
Extends
Section titled “Extends”Pick<ModelEntry,"path">.Partial<Omit<ModelEntry,"path">>
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
bounds? |
ModelBounds |
- |
capsule? |
ModelCapsule |
- |
clips? |
Partial<Record<ModelClip, string>> |
The file’s own name for each clip a character wearing it plays that is not named as ModelClip names it, such as { run: "Sprint" }. A name the file lacks warns once in development, listing its clips. Not the manifest’s list of the file’s clips, which a bake writes. |
clipSpeeds? |
Partial<Record<Walk | Run, number>> |
The ground speed, in metres a second at the scale it is drawn, at which a character’s walk and run play at their own pace, over the speed the engine measures off the model’s feet, such as { walk: 0.7, run: 2.15 }. Each is positive and the walk’s below the run’s, or the registration throws. |
collider? |
ModelColliderRecord |
What of it is solid where a map or a scene places it, baked beside hullPoints: a game’s manifest keeps it, and the kit’s does not. |
hull? |
ModelHull |
Kept only for the models a manifest’s folder names, as the kit names its scatter models. |
hullPoints? |
number[] |
The corners of its convex hull in its own space, three numbers to a corner: what a rotated copy is seated on, and the points a hull collider wraps, on the page and in a room, where its collider names none of its own. A game’s manifest keeps them; the kit’s, which no page registers, does not. |
material? |
ModelMaterial |
What the model wears in place of each of its materials wherever the engine draws it by this name: an <Entity>, an <InstancedModel>, a map’s prop, and an entity a system spawns or a room streams, on every page. A component’s own material goes over it. A function cannot travel to another page, and a name can: in a room, the registration is how each page dresses the entities the room spawns. Every page registers its models from the same module, so each holds the same function. |
path |
string |
The file’s path from the folder above the models folder. In a game’s manifest that folder is public, so the path is where the page fetches the file, relative to the page, and a game served under a folder of its own finds it. The kit’s paths are relative to its package, which no page serves. |