Skip to content

attachAccessoryToModel

attachAccessoryToModel(characterRoot, attachment, accessoryObject): AccessoryAttachmentResult

Defined in: packages/declarative-hex-worlds/src/three/accessories.ts:31

Attach accessoryObject to the attachment.node bone/node of characterRoot, applying the accessory’s local transform. Returns whether the node was found. On a miss the accessory is left un-parented and attached is false — the caller decides whether a missing node is fatal (validate at author time via validateAccessoryAttachments).

Object3D

AccessoryAttachment

Object3D

AccessoryAttachmentResult