Skip to content
Back to skills

Bone Attachment

ASecurity

Attach meshes to bones of a skinned mesh, such as attaching a sword to a character's hand.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
developmentnodegit

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill bone-attachment --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bone Attachment?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bone Attachment
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-bone-attachment/badge)](https://www.skillsdirectory.com/skills/david-li0406-bone-attachment)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: bone-attachment
description: Attach meshes to bones of a skinned mesh, such as attaching a sword to a character's hand.
---

# Bone Attachment

Attach meshes to bones of a skinned mesh, such as attaching a sword to a character's hand.

## Technique

Create a `BoneChild` component that uses `useEffect` to add a container group to a bone and remove it on cleanup. The bone reference is obtained from the GLTF nodes after loading the model.

## Key Concepts

- Access bones from GLTF nodes (e.g., `nodes.HandR`)
- Use `bone.add(container)` to parent objects to bones
- Clean up with `bone.remove(container)` in useEffect cleanup
- Apply position/rotation/scale offsets to adjust attachment placement

## Usage

```tsx
const { nodes } = useGLTF('/character.glb')

<BoneChild bone={nodes.HandR} position={[0, 0.3, 2]} rotation={[0, 0, 0]}>
  <mesh>
    <boxGeometry />
    <meshBasicMaterial color="red" />
  </mesh>
</BoneChild>
```

---

This skill is part of [verekia](https://x.com/verekia)'s [**r3f-gamedev**](https://github.com/verekia/r3f-gamedev).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…