@holoscript/plugin-fashion
v2.0.3
Published
HoloScript domain plugin for garments and cloth — registers the fabric_simulation, garment, and runway_choreography traits. Ships TypeScript sources; consumers compile it in their own build.
Maintainers
Readme
@holoscript/plugin-fashion
A HoloScript domain plugin for garments and cloth.
It registers three traits with the HoloScript trait system:
| Trait | What it covers |
|---|---|
| fabric_simulation | Cloth solving — drape, stretch and collision response |
| garment | Garments as wearable objects with fit and layering |
| runway_choreography | Scripted movement for runway and presentation scenes |
Requires @holoscript/core >=8.0.0. The plugin self-registers
(autoRegister: true in plugin.manifest.json), so importing it is enough to
make its traits available to a composition.
Install
npm install @holoscript/plugin-fashionUse
import '@holoscript/plugin-fashion';Then reference the traits from .holo / .hs / .hsplus source the same way as
any core trait.
Shape of this package
It publishes TypeScript sources rather than a compiled bundle — main points at
src/index.ts, and there is no build step. Consumers compile it as part of their
own build. That is the shape it has shipped in since 2.0.x; the runtime entry is
src/runtime.ts and the solver lives in src/fashionsolver.ts.
License
MIT
