@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / components / IKChain
Type Alias: IKChain ​
ts
type IKChain = {
limb: IKLimb;
target: EntityId | null;
pole: EntityId | null;
weight: number;
matchRotation: boolean;
enabled: boolean;
clips: string[] | null;
fade: number | null;
};Defined in: components/IK.ts:8
One limb reaching for an entity.
Properties ​
| Property | Type | Description | Defined in |
|---|---|---|---|
limb | IKLimb | The hand or foot that reaches. | components/IK.ts:10 |
target | EntityId | null | Entity whose world position the hand/foot reaches (a weapon's grip, a door handle, a step). | components/IK.ts:12 |
pole | EntityId | null | Entity the elbow/knee bends toward; null keeps the animation's own bend. | components/IK.ts:14 |
weight | number | 0 = the animation, 1 = the target; in between blends. | components/IK.ts:16 |
matchRotation | boolean | Also turn the hand/foot to the target's rotation. | components/IK.ts:18 |
enabled | boolean | Whether this chain runs. | components/IK.ts:20 |
clips | string[] | null | Only while one of these clips plays (null = whatever plays). | components/IK.ts:22 |
fade | number | null | Seconds a chain with clips takes to fade in or out when the clip changes; null follows the Animation component's cross-fade, so the IK and the clip change together. | components/IK.ts:28 |

