bone-attachment

Attach meshes to GLTF bones with adjustable position, rotation, and scale offsets.

31|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/verekia/r3f-gamedev --skill bone-attachment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bone-attachment
Source: https://github.com/verekia/r3f-gamedev/tree/main/skills/bone-attachment
Command: npx skills add https://github.com/verekia/r3f-gamedev --skill bone-attachment

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Attaching auxiliary objects (like weapons or accessories) to specific bones on a character model to maintain correct animation and positioning.

Core Features & Use Cases

  • Bone-based attachment: mount meshes to GLTF bones so they move with animations.
  • Offset customization: apply position/rotation/scale tweaks to fit assets.
  • Use case: attach a sword to the character's hand or armor to a shoulder bone.

Quick Start

Attach a mesh as a child to a bone reference using a BoneChild component with a specified bone and transform.

Frequently Asked Questions about bone-attachment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I attach a weapon to a character bone in three.js?

To attach a weapon to a character bone in three.js, mount meshes directly to GLTF bones so they follow animations. You can use a BoneChild component with a specified bone reference and apply transform offsets to align the weapon correctly.

What is the best way to mount accessories on skinned meshes in r3f?

Mounting accessories on skinned meshes in r3f involves attaching objects to specific bones. This ensures items like armor or swords move accurately with character animations by applying customizable position, rotation, and scale tweaks to fit the assets.

Can I use GLTF bone references to attach objects in React Three Fiber?

Yes, you can use GLTF bone references to attach objects in React Three Fiber. The BoneChild component accepts bone references extracted from GLTF nodes, allowing you to parent meshes directly to specific skeletal bones for animated characters.

How do I adjust the position and rotation of a sword attached to a hand bone?

You adjust the position and rotation of a sword attached to a hand bone by applying transform offsets. The attachment system supports customizable position, rotation, and scale tweaks to ensure the weapon aligns correctly with the character's grip.

Why do my attached objects misalign with the character animation in three.js?

Attached objects misalign with character animation in three.js when transform offsets are incorrect. Applying precise position, rotation, and scale adjustments to the bone attachment ensures the auxiliary meshes stay properly aligned with the skinned mesh during movement.