Skip to content

@relu-interactives/spatial-ecs


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

Function: findModelBone() ​

ts
function findModelBone(root, ref): Object3D<Object3DEventMap> | null;

Defined in: animation/bones.ts:60

The bone an attachment names in root: by node name, then by its sanitized form (a name saved from a source file), then by humanoid name (the same body part on another rig). null when none matches.

Parameters ​

ParameterType
rootObject3D
ref{ bone?: string | null; humanoid?: string | null; }
ref.bone?string | null
ref.humanoid?string | null

Returns ​

Object3D<Object3DEventMap> | null