The .drft container · interface
Joint
One joint: where it hangs and what it is called.
Explained in The .drft container.
interface Jointimport type { Joint } from '@driftengine/drft';Properties
| Name | Type | Description |
|---|---|---|
parentreadonly | number | Index of this joint's parent, or -1 for a root. Always less than this joint's own index.MoreParents-first is a requirement rather than a convention: a palette is resolved in index order
and reads each joint's parent as it goes, so a nearly-sorted rig is wrong in one limb — which
reads as a bad animation rather than as a data error. The importer sorts, because it is also
the layer that can remap every index naming a joint; |
namereadonly | string | The name the source rig gave it, which is what retargeting matches on. |