@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 ​
| Property | Type | Description | Defined in |
|---|---|---|---|
clips | string[] | The clips this hold is for. | components/BoneAttachment.ts:12 |
bone | string | null | Another bone, by node name, for these clips. Unset: the attachment's own. | components/BoneAttachment.ts:14 |
humanoid | string | null | Another bone by humanoid name, used when the node name isn't found (another rig). | components/BoneAttachment.ts:16 |
hidden | boolean | Hide the entity in these clips. | components/BoneAttachment.ts:18 |
position | Xyz | null | Offset from the bone in these clips, instead of the entity's Transform position. | components/BoneAttachment.ts:20 |
rotation | Xyz | null | Rotation from the bone in radians, instead of the entity's Transform rotation. | components/BoneAttachment.ts:22 |

