Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / components / BoneHold

Type Alias: BoneHold ​

ts
type BoneHold = {
  clips: string[];
  bone: string | null;
  humanoid: string | null;
  hidden: boolean;
  position: Xyz | null;
  rotation: Xyz | null;
};

Defined in: components/BoneAttachment.ts:10

Where an attached entity goes while certain clips play: a rifle slung on the back in Idle, a sword hidden in Swim.

Properties ​

PropertyTypeDescriptionDefined in
clipsstring[]The clips this hold is for.components/BoneAttachment.ts:12
bonestring | nullAnother bone, by node name, for these clips. Unset: the attachment's own.components/BoneAttachment.ts:14
humanoidstring | nullAnother bone by humanoid name, used when the node name isn't found (another rig).components/BoneAttachment.ts:16
hiddenbooleanHide the entity in these clips.components/BoneAttachment.ts:18
positionXyz | nullOffset from the bone in these clips, instead of the entity's Transform position.components/BoneAttachment.ts:20
rotationXyz | nullRotation from the bone in radians, instead of the entity's Transform rotation.components/BoneAttachment.ts:22