# Rigging and animation

> Add a skeleton, set skin weights, pose with IK, keyframe clips and export a rigged model as GLB for your game engine.

URL: https://petalmesh.com/docs/rigging-animation
Last updated: 2026-12-04

## Rig a model

Switch to Rig mode. Choose the kind of character (1), press Fit skeleton to model (2) and check the skin binding status (3). The joint list (4) shows the skeleton.

Join a multi-part asset into one object first, then run the auto-rig with a template.

| Template | For |
|---|---|
| Hinged lid | Chests, crates, hatches |
| Door | One or two leaves |
| Spin | Wheels, gears |
| Chain | Plants, banners, tails |
| Biped | People |
| Quadruped | Animals |

Check the skin with the weights report. Assign or smooth weights with the weight brush where the automatic result needs a touch-up. A deform test poses the rig and shows where it stretches or squeezes.

## Animate

Switch to Animate mode. The clip list (1), the joints to pose (2) and the timeline (3) are on screen. Press Play (4) to watch the clip.

Use the presets for open, close, sway, wag, spin, bob and float, or key your own poses. Press K to insert a key and Space to play. Use IK to drag a hand or foot and have the limb follow. Looping presets are marked as loops.

## Make plants sway

Trees, bushes and grass can skip the skeleton. Bake wind into them and they sway on their own.

## Start from a template with a body

Build a humanoid for a rig-ready person. Four-legged templates cover horses, dogs and deer. Treat these as bases to refine.

## Export a rigged model

Export a GLB. It carries the skin and the animations. Use GLB for rigged assets.
