@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / components / BoneAttachmentOptions
Type Alias: BoneAttachmentOptions ​
ts
type BoneAttachmentOptions = {
bone?: string;
humanoid?: string | null;
compensateScale?: boolean;
enabled?: boolean;
holds?: Partial<BoneHold> & {
clips: string[];
}[];
hideInOtherClips?: boolean;
};Defined in: components/BoneAttachment.ts:45
Optional initializer for BoneAttachmentComponent.
Properties ​
| Property | Type | Description | Defined in |
|---|---|---|---|
bone? | string | The bone's node name in the parent's model (as three.js names it). | components/BoneAttachment.ts:47 |
humanoid? | string | null | The bone's humanoid name (rightHand, head …), used when the node name isn't found (another rig). | components/BoneAttachment.ts:49 |
compensateScale? | boolean | Cancel the bone's world scale so offsets are in metres on any rig. Defaults to true. | components/BoneAttachment.ts:51 |
enabled? | boolean | Turn the attachment off without removing it. Defaults to true. | components/BoneAttachment.ts:53 |
holds? | Partial<BoneHold> & { clips: string[]; }[] | Where it goes in particular clips. Defaults to none. | components/BoneAttachment.ts:55 |
hideInOtherClips? | boolean | Hide it while a clip no hold names is playing. Defaults to false. | components/BoneAttachment.ts:57 |

