Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / ModelBoneInfo

Type Alias: ModelBoneInfo ​

ts
type ModelBoneInfo = {
  name: string;
  humanoid: HumanoidBone | null;
  parent: string | null;
  depth: number;
};

Defined in: animation/bones.ts:6

A bone of a loaded model, for bone pickers and attachment.

Properties ​

PropertyTypeDescriptionDefined in
namestringNode name as three.js has it (glTF names are sanitized: mixamorig:Hips → mixamorigHips).animation/bones.ts:8
humanoidHumanoidBone | nullHumanoid name when the rig is a recognisable humanoid, else null.animation/bones.ts:10
parentstring | nullParent bone's name, or null for a root bone.animation/bones.ts:12
depthnumberDepth below the topmost bone (for indenting a tree).animation/bones.ts:14