Skip to content

@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 ​

PropertyTypeDescriptionDefined in
bone?stringThe bone's node name in the parent's model (as three.js names it).components/BoneAttachment.ts:47
humanoid?string | nullThe bone's humanoid name (rightHand, head …), used when the node name isn't found (another rig).components/BoneAttachment.ts:49
compensateScale?booleanCancel the bone's world scale so offsets are in metres on any rig. Defaults to true.components/BoneAttachment.ts:51
enabled?booleanTurn 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?booleanHide it while a clip no hold names is playing. Defaults to false.components/BoneAttachment.ts:57