@forgeax/engine-skinning
v0.2.1
Published
Optional skin and joint binding domain.
Readme
@forgeax/engine-skinning
[!IMPORTANT] Owner: skeletal binding and joint resolution. This package is renderer-independent and is optional until a world contains a
Skincomponent.
import { Skin, resolveSkinJoints, skinningPlugin } from '@forgeax/engine-skinning';
const plugins = [skinningPlugin()];
const binding = resolveSkinJoints(jointPaths, names, skinEntity);
if (!binding.ok) {
// binding.error.code is the recovery key; keep the structured detail.
}
void [Skin, plugins];| This package owns | Excluded concepts |
|:--|:--|
| Skin, skinningPlugin, joint path binding, skinning error union | Renderer lifecycle, animation playback, material or GPU policy |
SkinError is a closed union. Use the code, expected, hint, and detail fields from src/errors.ts to recover.
Hosts that instantiate skinned scenes add skinningPlugin() to their World/App plugin list. The component remains optional and is not registered by renderer assembly. Load Skin and resolveSkinJoints from @forgeax/engine-skinning; no compatibility alias is provided.
